Skip to content

Commit 2253efc

Browse files
azoitlptziegler
authored andcommitted
GraphicalEditor registers for CommandStackEvents #21
GraphicalEditor still used the deprecated commandstack listener API. With previous work the new api was added now also the registration is moved. Addresses: #21
1 parent 35e7a78 commit 2253efc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.eclipse.gef/src/org/eclipse/gef/ui/parts/GraphicalEditor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void createPartControl(Composite parent) {
178178
*/
179179
@Override
180180
public void dispose() {
181-
getCommandStack().removeCommandStackListener(this);
181+
getCommandStack().removeCommandStackEventListener(this);
182182
getSite().getWorkbenchWindow().getSelectionService().removeSelectionListener(this);
183183
getEditDomain().setActiveTool(null);
184184
getActionRegistry().dispose();
@@ -354,7 +354,7 @@ protected void hookGraphicalViewer() {
354354
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
355355
setSite(site);
356356
setInput(input);
357-
getCommandStack().addCommandStackListener(this);
357+
getCommandStack().addCommandStackEventListener(this);
358358
getSite().getWorkbenchWindow().getSelectionService().addSelectionListener(this);
359359
initializeActionRegistry();
360360
}

0 commit comments

Comments
 (0)