Skip to content
Snippets Groups Projects
Commit 703300a6 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

Better solution with "improvement" of the kernel

refs 2055
parent 6b728409
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils;
* @author hoelzlf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: FC4420CE174D41171740424F112C9701
* @ConQAT.Rating YELLOW Hash: E1E1E54E60C244CBA630696D12A9B0FE
*/
public class ActionService implements IActionService, IPersistencyServiceListener,
CommandStackListener {
......@@ -181,4 +181,34 @@ public class ActionService implements IActionService, IPersistencyServiceListene
public void topLevelElementContentChanged(ITopLevelElement element) {
// ignore
}
/** {@inheritDoc} */
@Override
public void runGlobalCopyAction() {
globalCopyAction.run();
}
/** {@inheritDoc} */
@Override
public void runGlobalPasteAction() {
globalPasteAction.run();
}
/** {@inheritDoc} */
@Override
public void runGlobalDeleteAction() {
globalDeleteAction.run();
}
/** {@inheritDoc} */
@Override
public void runGlobalUndoAction() {
globalUndoAction.run();
}
/** {@inheritDoc} */
@Override
public void runGlobalRedoAction() {
globalRedoAction.run();
}
}
......@@ -28,13 +28,28 @@ import org.fortiss.tooling.kernel.ui.internal.ActionService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: B12A8EF1D028E82503F0BF59DBAF9398
* @ConQAT.Rating YELLOW Hash: 5964A9A57E81F49FFBF1CA0EBEC89638
*/
public interface IActionService {
/** Returns the singleton instance of the service. */
public static final IActionService INSTANCE = new ActionService();
/** Runs the global copy action. */
public void runGlobalCopyAction();
/** Runs the global paste action. */
public void runGlobalPasteAction();
/** Runs the global delete action. */
public void runGlobalDeleteAction();
/** Runs the global undo action. */
public void runGlobalUndoAction();
/** Runs the global redo action. */
public void runGlobalRedoAction();
/** Registers all global actions with the given {@link IActionBars}. */
void registerGlobalActions(IActionBars actionBars);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment