Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.gmf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/gmf/dawnGmfGenmodel/presentation/DawnGmfGenmodelEditor.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.gmf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/gmf/dawnGmfGenmodel/presentation/DawnGmfGenmodelEditor.java153
1 files changed, 73 insertions, 80 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.gmf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/gmf/dawnGmfGenmodel/presentation/DawnGmfGenmodelEditor.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.gmf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/gmf/dawnGmfGenmodel/presentation/DawnGmfGenmodelEditor.java
index dd063daaec..8586807bec 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.gmf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/gmf/dawnGmfGenmodel/presentation/DawnGmfGenmodelEditor.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.gmf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/gmf/dawnGmfGenmodel/presentation/DawnGmfGenmodelEditor.java
@@ -1,10 +1,10 @@
/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Martin Fluegge - initial API and implementation
*/
@@ -125,7 +125,7 @@ import java.util.Map;
/**
* This is an example of a DawnGmfGenmodel model editor. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @author Martin Fluegge
* @generated
*/
@@ -133,16 +133,9 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
IMenuListener, IViewerProvider, IGotoMarker
{
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Martin Fluegge - initial API and implementation";
-
- /**
* This keeps track of the editing domain that is used to track all changes to the model. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
protected AdapterFactoryEditingDomain editingDomain;
@@ -150,35 +143,35 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is the one adapter factory used for providing views of the model. <!-- begin-user-doc --> <!-- end-user-doc
* -->
- *
+ *
* @generated
*/
protected ComposedAdapterFactory adapterFactory;
/**
* This is the content outline page. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected IContentOutlinePage contentOutlinePage;
/**
* This is a kludge... <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected IStatusLineManager contentOutlineStatusLineManager;
/**
* This is the content outline page's viewer. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected TreeViewer contentOutlineViewer;
/**
* This is the property sheet page. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected PropertySheetPage propertySheetPage;
@@ -186,7 +179,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is the viewer that shadows the selection in the content outline. The parent relation must be correctly defined
* for this to work. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected TreeViewer selectionViewer;
@@ -194,14 +187,14 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content
* outline viewer. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected Viewer currentViewer;
/**
* This listens to which ever viewer is active. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ISelectionChangedListener selectionChangedListener;
@@ -209,14 +202,14 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this
* editor. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected Collection<ISelectionChangedListener> selectionChangedListeners = new ArrayList<ISelectionChangedListener>();
/**
* This keeps track of the selection of the editor as a whole. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected ISelection editorSelection = StructuredSelection.EMPTY;
@@ -224,14 +217,14 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* The MarkerHelper is responsible for creating workspace resource markers presented in Eclipse's Problems View. <!--
* begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected MarkerHelper markerHelper = new EditUIMarkerHelper();
/**
* This listens for when the outline becomes active <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected IPartListener partListener = new IPartListener()
@@ -284,35 +277,35 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* Resources that have been removed since last activation. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected Collection<Resource> removedResources = new ArrayList<Resource>();
/**
* Resources that have been changed since last activation. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected Collection<Resource> changedResources = new ArrayList<Resource>();
/**
* Resources that have been saved. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected Collection<Resource> savedResources = new ArrayList<Resource>();
/**
* Map to store the diagnostic associated with a resource. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected Map<Resource, Diagnostic> resourceToDiagnosticMap = new LinkedHashMap<Resource, Diagnostic>();
/**
* Controls whether the problem indication should be updated. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected boolean updateProblemIndication = true;
@@ -320,7 +313,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* Adapter used to update the problem indication when resources are demanded loaded. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
protected EContentAdapter problemIndicationAdapter = new EContentAdapter()
@@ -382,7 +375,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This listens for workspace changes. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected IResourceChangeListener resourceChangeListener = new IResourceChangeListener()
@@ -479,7 +472,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* Handles activation of the editor or it's associated views. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void handleActivate()
@@ -519,7 +512,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* Handles what to do with changed resources on activation. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void handleChangedResources()
@@ -565,7 +558,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* Updates the problems indication with the information described in the specified diagnostic. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void updateProblemIndication()
@@ -630,7 +623,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* Shows a dialog that asks if conflicting changes should be discarded. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected boolean handleDirtyConflict()
@@ -641,7 +634,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This creates a model editor. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public DawnGmfGenmodelEditor()
@@ -652,7 +645,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This sets up the editing domain for the model editor. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void initializeEditingDomain()
@@ -708,7 +701,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is here for the listener to be able to call it. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -719,7 +712,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This sets the selection into whichever viewer is active. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setSelectionToViewer(Collection<?> collection)
@@ -749,7 +742,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
* This returns the editing domain as required by the {@link IEditingDomainProvider} interface. This is important for
* implementing the static methods of {@link AdapterFactoryEditingDomain} and for supporting
* {@link org.eclipse.emf.edit.ui.action.CommandAction}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EditingDomain getEditingDomain()
@@ -759,14 +752,14 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider
{
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory)
@@ -776,7 +769,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -788,7 +781,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -800,7 +793,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -812,7 +805,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -825,7 +818,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This makes sure that one content viewer, either for the current page or the outline view, if it has focus, is the
* current one. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setCurrentViewer(Viewer viewer)
@@ -876,7 +869,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This returns the viewer as required by the {@link IViewerProvider} interface. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
public Viewer getViewer()
@@ -887,7 +880,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This creates a context menu for the viewer and adds a listener as well registering the menu for extension. <!--
* begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void createContextMenuFor(StructuredViewer viewer)
@@ -909,7 +902,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void createModel()
@@ -940,7 +933,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* Returns a diagnostic describing the errors and warnings listed in the resource and the specified exception (if
* any). <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public Diagnostic analyzeResourceProblems(Resource resource, Exception exception)
@@ -967,7 +960,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is the method used by the framework to install your own controls. <!-- begin-user-doc --> <!-- end-user-doc
* -->
- *
+ *
* @generated
*/
@Override
@@ -1038,7 +1031,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* If there is just one page in the multi-page editor part, this hides the single tab at the bottom. <!--
* begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void hideTabs()
@@ -1058,7 +1051,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* If there is more than one page in the multi-page editor part, this shows the tabs at the bottom. <!--
* begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void showTabs()
@@ -1077,7 +1070,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is used to track the active viewer. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -1093,7 +1086,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is how the framework determines which interfaces we implement. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@SuppressWarnings("rawtypes")
@@ -1120,7 +1113,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This accesses a cached version of the content outliner. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public IContentOutlinePage getContentOutlinePage()
@@ -1193,7 +1186,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This accesses a cached version of the property sheet. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public IPropertySheetPage getPropertySheetPage()
@@ -1225,7 +1218,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This deals with how we want selection in the outliner to affect the other views. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
public void handleContentOutlineSelection(ISelection selection)
@@ -1256,7 +1249,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is for implementing {@link IEditorPart} and simply tests the command stack. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -1268,7 +1261,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is for implementing {@link IEditorPart} and simply saves the model file. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -1341,7 +1334,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
* This returns whether something has been persisted to the URI of the specified resource. The implementation uses the
* URI converter from the editor's resource set to try to open an input stream. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
protected boolean isPersisted(Resource resource)
@@ -1365,7 +1358,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This always returns true because it is not currently supported. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -1376,7 +1369,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This also changes the editor's input. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -1397,7 +1390,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void doSaveAs(URI uri, IEditorInput editorInput)
@@ -1412,7 +1405,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void gotoMarker(IMarker marker)
@@ -1441,7 +1434,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This is called during startup. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -1457,7 +1450,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -1468,7 +1461,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void addSelectionChangedListener(ISelectionChangedListener listener)
@@ -1478,7 +1471,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void removeSelectionChangedListener(ISelectionChangedListener listener)
@@ -1489,7 +1482,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ISelection getSelection()
@@ -1500,7 +1493,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection.
* Calling this result will notify the listeners. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated NOT
*/
public void setSelection(ISelection selection)
@@ -1516,7 +1509,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setStatusLineManager(ISelection selection)
@@ -1558,7 +1551,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This looks up a string in the plugin's plugin.properties file. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
private static String getString(String key)
@@ -1568,7 +1561,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This looks up a string in plugin.properties, making a substitution. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
private static String getString(String key, Object s1)
@@ -1579,7 +1572,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions
* from the Edit menu. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void menuAboutToShow(IMenuManager menuManager)
@@ -1589,7 +1582,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EditingDomainActionBarContributor getActionBarContributor()
@@ -1599,7 +1592,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public IActionBars getActionBars()
@@ -1609,7 +1602,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public AdapterFactory getAdapterFactory()
@@ -1619,7 +1612,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated NOT
*/
@Override
@@ -1653,7 +1646,7 @@ public class DawnGmfGenmodelEditor extends MultiPageEditorPart implements IEditi
/**
* Returns whether the outline view should be presented to the user. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected boolean showOutlineView()

Back to the top