Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.gmt.modisco.infra.facet.editor.presentation
Class FacetEditor

    java.lang.Object
      MultiPageEditorPart
          org.eclipse.gmt.modisco.infra.facet.editor.presentation.FacetEditor

    public class FacetEditor

extends MultiPageEditorPart

This is an example of a Facet model editor.

Nested Class Summary
`class` | `FacetEditor.ReverseAdapterFactoryContentProvider`

Constructor Summary
`FacetEditor()` 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.
`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

### FacetEditor

    public FacetEditor()

  This creates a model editor.

Method Detail

### setSelectionToViewer

    public void setSelectionToViewer(java.util.Collection<?> collection)

  This sets the selection into whichever viewer is active.

### 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`.

### setCurrentViewerPane

    public void setCurrentViewerPane(ViewerPane viewerPane)

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

### getViewer

    public Viewer getViewer()

  This returns the viewer as required by the `IViewerProvider` interface.

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

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

### createPages

    public void createPages()

  This is the method used by the framework to install your own controls.

### getAdapter

    public java.lang.Object getAdapter(java.lang.Class key)

  This is how the framework determines which interfaces we implement.

### getContentOutlinePage

    public IContentOutlinePage getContentOutlinePage()

  This accesses a cached version of the content outliner.

### getPropertySheetPage

    public IPropertySheetPage getPropertySheetPage()

  This accesses a cached version of the property sheet.

### handleContentOutlineSelection

    public void handleContentOutlineSelection(ISelection selection)

  This deals with how we want selection in the outliner to affect the other views.

### isDirty

    public boolean isDirty()

  This is for implementing `IEditorPart` and simply tests the command stack.

### doSave

    public void doSave(IProgressMonitor progressMonitor)

  This is for implementing `IEditorPart` and simply saves the model file.

### isSaveAsAllowed

    public boolean isSaveAsAllowed()

  This always returns true because it is not currently supported.

### doSaveAs

    public void doSaveAs()

  This also changes the editor's input.

### gotoMarker

    public void gotoMarker(IMarker marker)

### init

    public void init(IEditorSite site,
                     IEditorInput editorInput)

  This is called during startup.

### setFocus

    public void setFocus()

### addSelectionChangedListener

    public void addSelectionChangedListener(ISelectionChangedListener listener)

  This implements `org.eclipse.jface.viewers.ISelectionProvider`.

### removeSelectionChangedListener

    public void removeSelectionChangedListener(ISelectionChangedListener listener)

  This implements `org.eclipse.jface.viewers.ISelectionProvider`.

### getSelection

    public ISelection getSelection()

  This implements `org.eclipse.jface.viewers.ISelectionProvider` to return this editor's overall selection.

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

### setStatusLineManager

    public void setStatusLineManager(ISelection selection)

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

### getActionBarContributor

    public EditingDomainActionBarContributor getActionBarContributor()

### getActionBars

    public IActionBars getActionBars()

### getAdapterFactory

    public AdapterFactory getAdapterFactory()

### dispose

    public void dispose()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD