org.eclipse.epf.authoring.ui.views
Class AbstractBaseView

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.ui.part.WorkbenchPart
          extended byorg.eclipse.ui.part.ViewPart
              extended byorg.eclipse.epf.authoring.ui.views.SaveableLibraryViewPart
                  extended byorg.eclipse.epf.authoring.ui.views.AbstractBaseView
All Implemented Interfaces:
java.util.EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.edit.domain.IEditingDomainProvider, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.ide.IGotoMarker, ILibraryServiceListener, org.eclipse.jface.action.IMenuListener, org.eclipse.ui.IPersistable, org.eclipse.ui.ISaveablePart, org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.emf.common.ui.viewer.IViewerProvider, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation
Direct Known Subclasses:
ConfigurationView, LibraryView

public abstract class AbstractBaseView
extends SaveableLibraryViewPart
implements org.eclipse.emf.edit.domain.IEditingDomainProvider, org.eclipse.jface.viewers.ISelectionProvider, ILibraryServiceListener, org.eclipse.jface.action.IMenuListener, org.eclipse.emf.common.ui.viewer.IViewerProvider, org.eclipse.ui.ide.IGotoMarker

The abstract base class for all Method Library views.

Since:
1.0
Author:
Phong Nguyen Le, Shilpa Toraskar, Kelvin Low

Field Summary
 
Fields inherited from interface org.eclipse.ui.ISaveablePart
PROP_DIRTY
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
AbstractBaseView()
           
 
Method Summary
 void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
           
 void configurationSet(MethodConfiguration config)
          Receives notification when a method configuration has been set as the current method configuration.
abstract  ILibraryActionBarContributor createActionBarContributor()
           
 void createContextMenuFor(org.eclipse.jface.viewers.StructuredViewer viewer)
           
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
abstract  void createViewer(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 java.lang.Object getAdapter(java.lang.Class key)
           
 org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider getContentProvider()
           
 org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
           
 org.eclipse.ui.views.properties.IPropertySheetPage getPropertySheetPage()
          This accesses a cached version of the property sheet.
 org.eclipse.jface.viewers.ISelection getSelection()
           
abstract  org.eclipse.jface.viewers.Viewer getViewer()
           
 void gotoMarker(org.eclipse.core.resources.IMarker marker)
           
 void libraryClosed(MethodLibrary library)
          Receives notification when a method library has been closed.
 void libraryCreated(MethodLibrary library)
          Receives notification when a method library has been created.
 void libraryOpened(MethodLibrary library)
          Receives notification when a method library has been opened.
 void libraryReopened(MethodLibrary library)
          Receives notification when a method library has been reopened.
 void librarySet(MethodLibrary library)
          Receives notification when a method library has been set as the current method library.
 void menuAboutToShow(org.eclipse.jface.action.IMenuManager menuManager)
           
 void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
           
 void setFocus()
           
abstract  void setInputForViewer(java.lang.Object model)
           
 void setSelection(org.eclipse.jface.viewers.ISelection selection)
           
 void setSelectionToViewer(java.util.Collection collection)
          This sets the selection into whichever viewer is active.
 
Methods inherited from class org.eclipse.epf.authoring.ui.views.SaveableLibraryViewPart
doSave, doSaveAs, isDirty, isSaveAsAllowed, isSaveOnCloseNeeded
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, getContentDescription, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, showBusy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 

Constructor Detail

AbstractBaseView

public AbstractBaseView()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
See Also:
WorkbenchPart.createPartControl(Composite)

createContextMenuFor

public void createContextMenuFor(org.eclipse.jface.viewers.StructuredViewer viewer)

menuAboutToShow

public void menuAboutToShow(org.eclipse.jface.action.IMenuManager menuManager)
Specified by:
menuAboutToShow in interface org.eclipse.jface.action.IMenuListener

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart

getEditingDomain

public org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
Specified by:
getEditingDomain in interface org.eclipse.emf.edit.domain.IEditingDomainProvider
See Also:
IEditingDomainProvider.getEditingDomain()

addSelectionChangedListener

public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
Specified by:
addSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider

removeSelectionChangedListener

public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
Specified by:
removeSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider

getAdapter

public java.lang.Object getAdapter(java.lang.Class key)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
See Also:
WorkbenchPart.getAdapter(Class)

getSelection

public org.eclipse.jface.viewers.ISelection getSelection()
Specified by:
getSelection in interface org.eclipse.jface.viewers.ISelectionProvider

setSelection

public void setSelection(org.eclipse.jface.viewers.ISelection selection)
Specified by:
setSelection in interface org.eclipse.jface.viewers.ISelectionProvider

libraryCreated

public void libraryCreated(MethodLibrary library)
Description copied from interface: ILibraryServiceListener
Receives notification when a method library has been created.

Specified by:
libraryCreated in interface ILibraryServiceListener
Parameters:
library - a method library
See Also:
ILibraryServiceListener.libraryCreated(MethodLibrary)

libraryOpened

public void libraryOpened(MethodLibrary library)
Description copied from interface: ILibraryServiceListener
Receives notification when a method library has been opened.

Specified by:
libraryOpened in interface ILibraryServiceListener
Parameters:
library - a method library
See Also:
ILibraryServiceListener.libraryOpened(MethodLibrary)

libraryReopened

public void libraryReopened(MethodLibrary library)
Description copied from interface: ILibraryServiceListener
Receives notification when a method library has been reopened.

Specified by:
libraryReopened in interface ILibraryServiceListener
Parameters:
library - a method library
See Also:
ILibraryServiceListener.libraryReopened(MethodLibrary)

libraryClosed

public void libraryClosed(MethodLibrary library)
Description copied from interface: ILibraryServiceListener
Receives notification when a method library has been closed.

Specified by:
libraryClosed in interface ILibraryServiceListener
Parameters:
library - a method library
See Also:
ILibraryServiceListener.libraryClosed(MethodLibrary)

librarySet

public void librarySet(MethodLibrary library)
Description copied from interface: ILibraryServiceListener
Receives notification when a method library has been set as the current method library.

Specified by:
librarySet in interface ILibraryServiceListener
Parameters:
library - a method library
See Also:
ILibraryServiceListener.librarySet(MethodLibrary)

configurationSet

public void configurationSet(MethodConfiguration config)
Description copied from interface: ILibraryServiceListener
Receives notification when a method configuration has been set as the current method configuration.

Specified by:
configurationSet in interface ILibraryServiceListener
Parameters:
config - a method configuration
See Also:
ILibraryServiceListener.configurationSet(MethodConfiguration)

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart

getPropertySheetPage

public org.eclipse.ui.views.properties.IPropertySheetPage getPropertySheetPage()
This accesses a cached version of the property sheet.


gotoMarker

public void gotoMarker(org.eclipse.core.resources.IMarker marker)
Specified by:
gotoMarker in interface org.eclipse.ui.ide.IGotoMarker
See Also:
IGotoMarker.gotoMarker(IMarker)

setSelectionToViewer

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


getContentProvider

public org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider getContentProvider()

getViewer

public abstract org.eclipse.jface.viewers.Viewer getViewer()
Specified by:
getViewer in interface org.eclipse.emf.common.ui.viewer.IViewerProvider

createViewer

public abstract void createViewer(org.eclipse.swt.widgets.Composite parent)

createActionBarContributor

public abstract ILibraryActionBarContributor createActionBarContributor()

setInputForViewer

public abstract void setInputForViewer(java.lang.Object model)