|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
pl.edu.agh.cast.ui.AbstractConfigurableView
public abstract class AbstractConfigurableView
This abstract class is to be implemented by classes which want to store their state across system start-stop cycles. This class implements the basic persistency scheme using IMemento object, which is maintained by the Eclipse Platform.
Field Summary | |
---|---|
protected org.eclipse.ui.IMemento |
configuration
The configuration of the view stored in IMemento object. |
protected static org.apache.log4j.Logger |
log
Logger |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
AbstractConfigurableView()
|
Method Summary | |
---|---|
protected abstract void |
activate()
Activate the view, e.g. |
protected abstract void |
contributeToActionBars()
Fill action bars with view specific actions. |
org.eclipse.ui.IMemento |
getConfiguration()
Returns the configuration of the view. |
protected abstract void |
hookContextMenu()
Add actions and action groups to context menu. |
protected abstract void |
hookDoubleClickAction()
Provide action for double click. |
void |
init(org.eclipse.ui.IViewSite site,
org.eclipse.ui.IMemento memento)
This init method restores the configuration of this view using the IMemento object. |
protected abstract void |
makeActions()
Create actions which are used in this view. |
void |
saveState(org.eclipse.ui.IMemento memento)
Save the configuration of the view in IMemento object. |
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
checkSite, getViewSite, init, setContentDescription, setInitializationData, setPartName |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPartPropertyListener, addPropertyListener, createPartControl, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setFocus, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, createPartControl, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
protected org.eclipse.ui.IMemento configuration
protected static org.apache.log4j.Logger log
Constructor Detail |
---|
public AbstractConfigurableView()
Method Detail |
---|
public void init(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento) throws org.eclipse.ui.PartInitException
init
in interface org.eclipse.ui.IViewPart
init
in class org.eclipse.ui.part.ViewPart
org.eclipse.ui.PartInitException
ViewPart.init(org.eclipse.ui.IViewSite, org.eclipse.ui.IMemento)
public void saveState(org.eclipse.ui.IMemento memento)
saveState
in interface org.eclipse.ui.IPersistable
saveState
in interface org.eclipse.ui.IViewPart
saveState
in class org.eclipse.ui.part.ViewPart
memento
- The IMemento object, which is used to store the configuration of the view.public org.eclipse.ui.IMemento getConfiguration()
protected abstract void makeActions()
protected abstract void hookContextMenu()
protected abstract void hookDoubleClickAction()
protected abstract void contributeToActionBars()
protected abstract void activate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |