org.eclipse.gmt.modisco.infra.query.editor.presentation
Class QueryEditor

java.lang.Object
  extended by MultiPageEditorPart
      extended by org.eclipse.gmt.modisco.infra.query.editor.presentation.QueryEditor

public class QueryEditor
extends MultiPageEditorPart

This is an example of a Query model editor.

Generated:
NOT

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

QueryEditor

public QueryEditor()
This creates a model editor.

Generated:
Method Detail

setSelectionToViewer

public void setSelectionToViewer(java.util.Collection<?> collection)
This sets the selection into whichever viewer is active.

Generated:

getEditingDomain

public EditingDomain getEditingDomain()
This returns the editing domain as required by the IEditingDomainProvider interface. This is important for implementing the static methods of AdapterFactoryEditingDomain and for supporting org.eclipse.emf.edit.ui.action.CommandAction.

Generated:

setCurrentViewerPane

public void setCurrentViewerPane(ViewerPane viewerPane)

Generated:

setCurrentViewer

public 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.

Generated:

getViewer

public Viewer getViewer()
This returns the viewer as required by the IViewerProvider interface.

Generated:

createModel

public void createModel()
This is the method called to load a resource into the editing domain's resource set based on the editor's input.

Generated:

analyzeResourceProblems

public 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).

Generated:

createPages

public void createPages()
This is the method used by the framework to install your own controls.

Generated:
NOT

getAdapter

public java.lang.Object getAdapter(java.lang.Class key)
This is how the framework determines which interfaces we implement.

Generated:

getContentOutlinePage

public IContentOutlinePage getContentOutlinePage()
This accesses a cached version of the content outliner.

Generated:

getPropertySheetPage

public IPropertySheetPage getPropertySheetPage()
This accesses a cached version of the property sheet.

Generated:

handleContentOutlineSelection

public void handleContentOutlineSelection(ISelection selection)
This deals with how we want selection in the outliner to affect the other views.

Generated:

isDirty

public boolean isDirty()
This is for implementing IEditorPart and simply tests the command stack.

Generated:

doSave

public void doSave(IProgressMonitor progressMonitor)
This is for implementing IEditorPart and simply saves the model file.

Generated:
NOT

isSaveAsAllowed

public boolean isSaveAsAllowed()
This always returns true because it is not currently supported.

Generated:

doSaveAs

public void doSaveAs()
This also changes the editor's input.

Generated:

gotoMarker

public void gotoMarker(IMarker marker)

Generated:
NOT

init

public void init(IEditorSite site,
                 IEditorInput editorInput)
This is called during startup.

Generated:
NOT

setFocus

public void setFocus()

Generated:

addSelectionChangedListener

public void addSelectionChangedListener(ISelectionChangedListener listener)
This implements org.eclipse.jface.viewers.ISelectionProvider.

Generated:

removeSelectionChangedListener

public void removeSelectionChangedListener(ISelectionChangedListener listener)
This implements org.eclipse.jface.viewers.ISelectionProvider.

Generated:

getSelection

public ISelection getSelection()
This implements org.eclipse.jface.viewers.ISelectionProvider to return this editor's overall selection.

Generated:

setSelection

public void setSelection(ISelection selection)
This implements org.eclipse.jface.viewers.ISelectionProvider to set this editor's overall selection. Calling this result will notify the listeners.

Generated:

setStatusLineManager

public void setStatusLineManager(ISelection selection)

Generated:

menuAboutToShow

public void menuAboutToShow(IMenuManager menuManager)
This implements org.eclipse.jface.action.IMenuListener to help fill the context menus with contributions from the Edit menu.

Generated:

getActionBarContributor

public EditingDomainActionBarContributor getActionBarContributor()

Generated:

getActionBars

public IActionBars getActionBars()

Generated:

getAdapterFactory

public AdapterFactory getAdapterFactory()

Generated:

dispose

public void dispose()

Generated:

getShowInContext

public ShowInContext getShowInContext()
Return the selected items, so that the "Show In" menu can be built by Eclipse according to the kind of items selected


getShowInTargetIds

public 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