EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.workbench.views.fc
Class AbstractFactoryComponentView

java.lang.Object
  extended by CommonNavigator
      extended by org.eclipse.egf.core.ui.workbench.views.fc.AbstractFactoryComponentView
Direct Known Subclasses:
FactoryComponentProjectExplorer, InstalledFactoryComponentView

public abstract class AbstractFactoryComponentView
extends CommonNavigator

Base class to implement IViewPart that display model element objects.


Constructor Summary
protected AbstractFactoryComponentView()
          Constructor.
 
Method Summary
protected  Text createFilterText(Composite parent_p)
          Creates the text widget where filter is entered and sets layout data.
protected  void createFilterWidget(Composite composite_p)
          Create the filter widget.
protected  Label createMessageArea(Composite parent_p)
          Creates the message text widget and sets layout data.
 void createPartControl(Composite parent_p)
           
 void dispose()
           
 Object getAdapter(Class adapter_p)
           
protected  CommandStack getCommandStack()
          Return the command stack for this view.
protected  ITreeContentProvider getContentProvider()
          Return the content provider used by this view.
protected abstract  String getContentProviderId()
          Return the content provider identifier.
protected abstract  AdapterFactoryEditingDomain getEditingDomain()
          Return the adapter factory editing domain for this view.
protected  String getFilterTextValue()
          Return the filter text value.
protected  IMemento getMemento()
          Return the memento for this view.
protected  PatternFilter getPatternFilter()
          Return the pattern filter.
 IPropertySheetPage getPropertySheetPage()
          This accesses a cached version of the property sheet.
protected  void handleAffectedObjects(Collection<?> affectedObjects_p)
          Handle affected objects.
 void init(IViewSite site_p, IMemento memento_p)
           
 void saveState(IMemento memento_p)
           
 void setSelectionToViewer(Collection<?> collection)
          This sets the selection into whichever viewer is active.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFactoryComponentView

protected AbstractFactoryComponentView()
Constructor.

Method Detail

handleAffectedObjects

protected void handleAffectedObjects(Collection<?> affectedObjects_p)
Handle affected objects.
Default behavior is to set selection to viewer for given affected objects.

Parameters:
affectedObjects_p -

getEditingDomain

protected abstract AdapterFactoryEditingDomain getEditingDomain()
Return the adapter factory editing domain for this view.

Returns:
a not null instance.

getCommandStack

protected CommandStack getCommandStack()
Return the command stack for this view.

Returns:
a not null instance.

getAdapter

public Object getAdapter(Class adapter_p)
See Also:
org.eclipse.ui.navigator.CommonNavigator#getAdapter(java.lang.Class)

getContentProviderId

protected abstract String getContentProviderId()
Return the content provider identifier.

Returns:

getPropertySheetPage

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


getContentProvider

protected ITreeContentProvider getContentProvider()
Return the content provider used by this view.

Returns:

setSelectionToViewer

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


createPartControl

public void createPartControl(Composite parent_p)
See Also:
org.eclipse.ui.navigator.CommonNavigator#createPartControl(org.eclipse.swt.widgets.Composite)

getMemento

protected IMemento getMemento()
Return the memento for this view.

Returns:
null can be returned, if it is the first time the view is open.

init

public void init(IViewSite site_p,
                 IMemento memento_p)
          throws PartInitException
Throws:
PartInitException
See Also:
org.eclipse.ui.navigator.CommonNavigator#init(org.eclipse.ui.IViewSite, org.eclipse.ui.IMemento)

dispose

public void dispose()
See Also:
org.eclipse.ui.navigator.CommonNavigator#dispose()

saveState

public void saveState(IMemento memento_p)
See Also:
org.eclipse.ui.navigator.CommonNavigator#saveState(org.eclipse.ui.IMemento)

createMessageArea

protected Label createMessageArea(Composite parent_p)
Creates the message text widget and sets layout data.

Parameters:
parent_p - the parent composite of the message area.

createFilterText

protected Text createFilterText(Composite parent_p)
Creates the text widget where filter is entered and sets layout data.

Parameters:
composite - the parent composite of the message area.

createFilterWidget

protected void createFilterWidget(Composite composite_p)
Create the filter widget.

Parameters:
composite_p -

getFilterTextValue

protected String getFilterTextValue()
Return the filter text value.

Returns:
the filterText

getPatternFilter

protected PatternFilter getPatternFilter()
Return the pattern filter.

Returns:
the patternFilter

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.