|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMultiPageEditorPart
org.eclipse.gmt.modisco.infra.query.editor.presentation.QueryEditor
public class QueryEditor
This is an example of a Query model editor.
Nested Class Summary | |
---|---|
class |
QueryEditor.ReverseAdapterFactoryContentProvider
|
Constructor Summary | |
---|---|
QueryEditor()
This creates a model editor. |
Method Summary | |
---|---|
void |
addSelectionChangedListener(ISelectionChangedListener listener)
This implements org.eclipse.jface.viewers.ISelectionProvider . |
Diagnostic |
analyzeResourceProblems(Resource resource,
java.lang.Exception exception)
Returns a diagnostic describing the errors and warnings listed in the resource and the specified exception (if any). |
void |
createModel()
This is the method called to load a resource into the editing domain's resource set based on the editor's input. |
void |
createPages()
This is the method used by the framework to install your own controls. |
void |
dispose()
|
void |
doSave(IProgressMonitor progressMonitor)
This is for implementing IEditorPart and simply saves the model
file. |
void |
doSaveAs()
This also changes the editor's input. |
EditingDomainActionBarContributor |
getActionBarContributor()
|
IActionBars |
getActionBars()
|
java.lang.Object |
getAdapter(java.lang.Class key)
This is how the framework determines which interfaces we implement. |
AdapterFactory |
getAdapterFactory()
|
IContentOutlinePage |
getContentOutlinePage()
This accesses a cached version of the content outliner. |
EditingDomain |
getEditingDomain()
This returns the editing domain as required by the IEditingDomainProvider interface. |
IPropertySheetPage |
getPropertySheetPage()
This accesses a cached version of the property sheet. |
ISelection |
getSelection()
This implements org.eclipse.jface.viewers.ISelectionProvider to
return this editor's overall selection. |
ShowInContext |
getShowInContext()
Return the selected items, so that the "Show In" menu can be built by Eclipse according to the kind of items selected |
java.lang.String[] |
getShowInTargetIds()
Return the additional IDs of the views that we want the user to be able to navigate to, when using the "Show In" menu |
Viewer |
getViewer()
This returns the viewer as required by the IViewerProvider
interface. |
void |
gotoMarker(IMarker marker)
|
void |
handleContentOutlineSelection(ISelection selection)
This deals with how we want selection in the outliner to affect the other views. |
void |
init(IEditorSite site,
IEditorInput editorInput)
This is called during startup. |
boolean |
isDirty()
This is for implementing IEditorPart and simply tests the command
stack. |
boolean |
isSaveAsAllowed()
This always returns true because it is not currently supported. |
void |
menuAboutToShow(IMenuManager menuManager)
This implements org.eclipse.jface.action.IMenuListener to help
fill the context menus with contributions from the Edit menu. |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
This implements org.eclipse.jface.viewers.ISelectionProvider . |
void |
setCurrentViewer(Viewer viewer)
This makes sure that one content viewer, either for the current page or the outline view, if it has focus, is the current one. |
void |
setCurrentViewerPane(ViewerPane viewerPane)
|
void |
setFocus()
|
void |
setSelection(ISelection selection)
This implements org.eclipse.jface.viewers.ISelectionProvider to
set this editor's overall selection. |
void |
setSelectionToViewer(java.util.Collection<?> collection)
This sets the selection into whichever viewer is active. |
void |
setStatusLineManager(ISelection selection)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryEditor()
Method Detail |
---|
public void setSelectionToViewer(java.util.Collection<?> collection)
public EditingDomain getEditingDomain()
IEditingDomainProvider
interface. This is important for
implementing the static methods of AdapterFactoryEditingDomain
and for supporting org.eclipse.emf.edit.ui.action.CommandAction
.
public void setCurrentViewerPane(ViewerPane viewerPane)
public void setCurrentViewer(Viewer viewer)
public Viewer getViewer()
IViewerProvider
interface.
public void createModel()
public Diagnostic analyzeResourceProblems(Resource resource, java.lang.Exception exception)
public void createPages()
public java.lang.Object getAdapter(java.lang.Class key)
public IContentOutlinePage getContentOutlinePage()
public IPropertySheetPage getPropertySheetPage()
public void handleContentOutlineSelection(ISelection selection)
public boolean isDirty()
IEditorPart
and simply tests the command
stack.
public void doSave(IProgressMonitor progressMonitor)
IEditorPart
and simply saves the model
file.
public boolean isSaveAsAllowed()
public void doSaveAs()
public void gotoMarker(IMarker marker)
public void init(IEditorSite site, IEditorInput editorInput)
public void setFocus()
public void addSelectionChangedListener(ISelectionChangedListener listener)
org.eclipse.jface.viewers.ISelectionProvider
.
public void removeSelectionChangedListener(ISelectionChangedListener listener)
org.eclipse.jface.viewers.ISelectionProvider
.
public ISelection getSelection()
org.eclipse.jface.viewers.ISelectionProvider
to
return this editor's overall selection.
public void setSelection(ISelection selection)
org.eclipse.jface.viewers.ISelectionProvider
to
set this editor's overall selection. Calling this result will notify the
listeners.
public void setStatusLineManager(ISelection selection)
public void menuAboutToShow(IMenuManager menuManager)
org.eclipse.jface.action.IMenuListener
to help
fill the context menus with contributions from the Edit menu.
public EditingDomainActionBarContributor getActionBarContributor()
public IActionBars getActionBars()
public AdapterFactory getAdapterFactory()
public void dispose()
public ShowInContext getShowInContext()
public java.lang.String[] getShowInTargetIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |