Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fluegge2010-06-06 15:00:24 +0000
committerMartin Fluegge2010-06-06 15:00:24 +0000
commite52abdb6fb99792ea153401cef4bd85bb7d8777e (patch)
treee1305665431c45ec2e9192eb185428e4e5684b66 /plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn
parentda36bd46832db377b9f670735ec3265ec15f3410 (diff)
downloadcdo-e52abdb6fb99792ea153401cef4bd85bb7d8777e.tar.gz
cdo-e52abdb6fb99792ea153401cef4bd85bb7d8777e.tar.xz
cdo-e52abdb6fb99792ea153401cef4bd85bb7d8777e.zip
[308232] [Dawn] Develop collaborative support for GMF on CDO
https://bugs.eclipse.org/bugs/show_bug.cgi?id=308232
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/DawnAcoreDiagramEditor.java13
1 files changed, 1 insertions, 12 deletions
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());
}

Back to the top