From e52abdb6fb99792ea153401cef4bd85bb7d8777e Mon Sep 17 00:00:00 2001 From: Martin Fluegge Date: Sun, 6 Jun 2010 15:00:24 +0000 Subject: [308232] [Dawn] Develop collaborative support for GMF on CDO https://bugs.eclipse.org/bugs/show_bug.cgi?id=308232 --- .../examples/acore/diagram/part/DawnAcoreDiagramEditor.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn') diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/DawnAcoreDiagramEditor.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/DawnAcoreDiagramEditor.java index 0d5cd68e64..a0edd3ef8e 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/DawnAcoreDiagramEditor.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/DawnAcoreDiagramEditor.java @@ -66,13 +66,9 @@ public class DawnAcoreDiagramEditor extends AcoreDiagramEditor implements IDawnE Shell shell = getSite().getShell(); ErrorDialog.openError(shell, title, msg, x.getStatus()); } - // transaction = (CDOTransaction)((DawnEditorInput)input).getView(); + dawnEditorSupport.setView(((DawnEditorInput)input).getView()); dawnEditorSupport.registerListeners(); - - // DawnNotificationUtil.registerResourceListeners(getEditingDomain().getResourceSet(), this); - // DawnNotificationUtil.registerTransactionListeners(transaction, this); - // DawnNotificationUtil.setChangeSubscriptionPolicy(transaction); } @Override @@ -86,7 +82,6 @@ public class DawnAcoreDiagramEditor extends AcoreDiagramEditor implements IDawnE { try { - // dirty = false; dawnEditorSupport.setDirty(false); updateState(getEditorInput()); validateState(getEditorInput()); @@ -109,9 +104,6 @@ public class DawnAcoreDiagramEditor extends AcoreDiagramEditor implements IDawnE @Override public boolean isDirty() { - // return super.isDirty() | transaction.isDirty(); - // return transaction.isDirty(); - // return super.isDirty() ; return dawnEditorSupport.isDirty(); } @@ -151,14 +143,11 @@ public class DawnAcoreDiagramEditor extends AcoreDiagramEditor implements IDawnE public CDOView getView() { - // TODO Auto-generated method stub - // return transaction; return dawnEditorSupport.getView(); } public void setDirty() { - // dirty = true; dawnEditorSupport.setDirty(true); ((AbstractDocumentProvider)getDocumentProvider()).changed(getEditorInput()); } -- cgit v1.2.3