Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-04-20 10:55:21 +0000
committerEike Stepper2012-04-20 10:55:21 +0000
commit2de7a1d6d940ae088ca1154d34b8c50d5134d4cc (patch)
tree328f1574a357d9644245c6d20842a4fea5bc05aa /plugins/org.eclipse.emf.cdo.ui
parent6ffdacfc9822b349a3cdbaee1753e68d22eca196 (diff)
downloadcdo-2de7a1d6d940ae088ca1154d34b8c50d5134d4cc.tar.gz
cdo-2de7a1d6d940ae088ca1154d34b8c50d5134d4cc.tar.xz
cdo-2de7a1d6d940ae088ca1154d34b8c50d5134d4cc.zip
[377269] [UI] Make CDOEditor easier to reuse
https://bugs.eclipse.org/bugs/show_bug.cgi?id=377269
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java183
1 files changed, 94 insertions, 89 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java
index 24f6c07298..4d8a9c3d54 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java
@@ -198,7 +198,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
{
/**
* <!-- 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 Eike Stepper - initial API and implementation"; //$NON-NLS-1$
@@ -206,7 +206,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* @ADDED
*/
- private static final Object EMPTY_INPUT = new Object();
+ protected static final Object EMPTY_INPUT = new Object();
/**
* @ADDED
@@ -226,7 +226,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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;
@@ -234,35 +234,35 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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;
@@ -270,7 +270,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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;
@@ -278,14 +278,14 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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;
@@ -293,14 +293,14 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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;
@@ -308,14 +308,14 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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()
@@ -368,35 +368,35 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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;
@@ -404,7 +404,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* Adapter used to update the problem indication when resources are demanded loaded. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
protected EContentAdapter problemIndicationAdapter = new EContentAdapter()
@@ -466,7 +466,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This listens for workspace changes. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected IResourceChangeListener resourceChangeListener = new IResourceChangeListener()
@@ -561,9 +561,9 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
}
};
- private IListener viewTargetListener = new IListener()
+ protected IListener viewTargetListener = new IListener()
{
- private CDOID inputID;
+ protected CDOID inputID;
public void notifyEvent(IEvent event)
{
@@ -601,7 +601,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* Handles activation of the editor or it's associated views. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void handleActivateGen()
@@ -641,7 +641,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* Handles activation of the editor or it's associated views. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated NOT
*/
protected void handleActivate()
@@ -652,7 +652,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* Handles what to do with changed resources on activation. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void handleChangedResources()
@@ -698,7 +698,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* Updates the problems indication with the information described in the specified diagnostic. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void updateProblemIndication()
@@ -762,7 +762,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* Shows a dialog that asks if conflicting changes should be discarded. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected boolean handleDirtyConflict()
@@ -773,7 +773,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This creates a model editor. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public CDOEditor()
@@ -784,7 +784,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This sets up the editing domain for the model editor. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected void initializeEditingDomainGen()
@@ -846,7 +846,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This is here for the listener to be able to call it. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -857,7 +857,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This sets the selection into whichever viewer is active. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setSelectionToViewer(Collection<?> collection)
@@ -887,7 +887,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
* 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()
@@ -897,14 +897,14 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider
{
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory)
@@ -914,7 +914,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -926,7 +926,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -938,7 +938,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -950,7 +950,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -963,7 +963,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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)
@@ -1014,7 +1014,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This returns the viewer as required by the {@link IViewerProvider} interface. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
public Viewer getViewer()
@@ -1025,7 +1025,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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)
@@ -1055,7 +1055,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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 createModelGen()
@@ -1130,7 +1130,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
});
ResourceSet resourceSet = view.getResourceSet();
- editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, resourceSet);
+ editingDomain = createEditingDomain(commandStack, resourceSet);
// This adapter provides the EditingDomain of the Editor
resourceSet.eAdapters().add(new EditingDomainProviderAdapter());
@@ -1155,10 +1155,15 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
}
}
+ protected AdapterFactoryEditingDomain createEditingDomain(BasicCommandStack commandStack, ResourceSet resourceSet)
+ {
+ return new AdapterFactoryEditingDomain(adapterFactory, commandStack, resourceSet);
+ }
+
/**
* 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)
@@ -1185,7 +1190,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This is the method used by the framework to install your own controls. <!-- begin-user-doc --> <!-- end-user-doc
* -->
- *
+ *
* @generated
*/
public void createPagesGen()
@@ -1329,7 +1334,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
}
}
- private CDOID getID(Object element)
+ protected CDOID getID(Object element)
{
if (element instanceof EObject)
{
@@ -1487,7 +1492,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
setExpandedStates();
}
- private void setExpandedStates()
+ protected void setExpandedStates()
{
for (CDOID id : expandedIDs)
{
@@ -1559,7 +1564,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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 NOT
*/
protected void hideTabs()
@@ -1579,7 +1584,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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 NOT
*/
protected void showTabs()
@@ -1598,7 +1603,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This is used to track the active viewer. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -1614,7 +1619,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This is how the framework determines which interfaces we implement. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@SuppressWarnings("rawtypes")
@@ -1641,7 +1646,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This accesses a cached version of the content outliner. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated NOT
*/
public IContentOutlinePage getContentOutlinePage()
@@ -1714,7 +1719,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This accesses a cached version of the property sheet. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public IPropertySheetPage getPropertySheetPage()
@@ -1746,7 +1751,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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)
@@ -1777,7 +1782,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This is for implementing {@link IEditorPart} and simply tests the command stack. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated NOT
*/
@Override
@@ -1789,7 +1794,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This is for implementing {@link IEditorPart} and simply saves the model file. <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
+ *
* @generated
*/
public void doSaveGen(IProgressMonitor progressMonitor)
@@ -1958,7 +1963,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
* 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)
@@ -1982,7 +1987,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This always returns true because it is not currently supported. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public boolean isSaveAsAllowedGen()
@@ -2001,7 +2006,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This also changes the editor's input. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -2022,7 +2027,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated NOT
*/
protected void doSaveAs(URI uri, IEditorInput editorInput)
@@ -2039,7 +2044,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void gotoMarker(IMarker marker)
@@ -2068,7 +2073,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This is called during startup. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void initGen(IEditorSite site, IEditorInput editorInput)
@@ -2096,7 +2101,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
@Override
@@ -2107,7 +2112,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void addSelectionChangedListener(ISelectionChangedListener listener)
@@ -2117,7 +2122,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void removeSelectionChangedListener(ISelectionChangedListener listener)
@@ -2128,7 +2133,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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()
@@ -2139,7 +2144,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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
*/
public void setSelection(ISelection selection)
@@ -2155,7 +2160,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void setStatusLineManager(ISelection selection)
@@ -2197,20 +2202,20 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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)
+ protected static String getString(String key)
{
return PluginDelegator.INSTANCE.getString(key);
}
/**
* 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)
+ protected static String getString(String key, Object s1)
{
return PluginDelegator.INSTANCE.getString(key, new Object[] { s1 });
}
@@ -2218,7 +2223,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* 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 menuAboutToShowGen(IMenuManager menuManager)
@@ -2260,9 +2265,9 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
menuManager.insertBefore(
"edit", new LongRunningAction(page, Messages.getString("CDOEditor.26") + SafeAction.INTERACTIVE) //$NON-NLS-1$ //$NON-NLS-2$
{
- private EReference feature;
+ protected EReference feature;
- private int instances;
+ protected int instances;
@Override
protected void preRun() throws Exception
@@ -2322,7 +2327,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* @ADDED
*/
- private IContributionItem populateSubMenu(String nsURI, Object value, final CDOPackageRegistry packageRegistry)
+ protected IContributionItem populateSubMenu(String nsURI, Object value, final CDOPackageRegistry packageRegistry)
{
if (value instanceof EPackage)
{
@@ -2371,7 +2376,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* @ADDED
*/
- private void populateSubMenu(EPackage ePackage, final MenuManager submenuManager)
+ protected void populateSubMenu(EPackage ePackage, final MenuManager submenuManager)
{
List<EObject> objects = new ArrayList<EObject>();
for (EClassifier eClassifier : ePackage.getEClassifiers())
@@ -2452,7 +2457,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public EditingDomainActionBarContributor getActionBarContributor()
@@ -2462,7 +2467,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public IActionBars getActionBars()
@@ -2472,7 +2477,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public AdapterFactory getAdapterFactory()
@@ -2482,7 +2487,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
public void disposeGen()
@@ -2576,7 +2581,7 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* Returns whether the outline view should be presented to the user. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated NOT
*/
protected boolean showOutlineView()
@@ -2678,11 +2683,11 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
* @author Eike Stepper
* @ADDED
*/
- private final class CreateRootAction extends LongRunningAction
+ protected class CreateRootAction extends LongRunningAction
{
- private EObject object;
+ protected EObject object;
- private CreateRootAction(EObject object)
+ protected CreateRootAction(EObject object)
{
super(getEditorSite().getPage(), object.eClass().getName(), ExtendedImageRegistry.getInstance()
.getImageDescriptor(getLabelImage(object)));
@@ -2728,10 +2733,10 @@ public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProv
/**
* Adapter that provides the current EditingDomain
- *
+ *
* @since 2.0
*/
- private class EditingDomainProviderAdapter implements Adapter, IEditingDomainProvider
+ protected class EditingDomainProviderAdapter implements Adapter, IEditingDomainProvider
{
public boolean isAdapterForType(Object type)
{

Back to the top