com.alveole.studio.web.designer
Class NodePropertiesView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by com.alveole.studio.web.designer.NodePropertiesView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class NodePropertiesView
extends org.eclipse.ui.part.ViewPart

This view part displays view of any selected element. Call getComposite and fill it (call layout()).

Author:
sylvain

Nested Class Summary
static interface NodePropertiesView.CompositeCleared
          This interface may be implemented by any plugin that wishes to be informed when panel is about to be cleared.
 
Field Summary
static java.lang.String ID
          This view ID.
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
NodePropertiesView()
           
 
Method Summary
 void cleanView()
          Clean view.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          Called by RCP to display view.
 NodePropertiesView.CompositeCleared getClearListener()
          Get current listener.
 org.eclipse.swt.widgets.Composite getComposite()
          Call this method to get a displayed composite.
 void layout()
          Layout the panel.
 void setClearListener(NodePropertiesView.CompositeCleared clearListener)
          Set a listener that will be called before next cleanup.
 void setFocus()
          Called when focus is gained.
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, 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, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static java.lang.String ID
This view ID.

Constructor Detail

NodePropertiesView

public NodePropertiesView()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Called by RCP to display view.

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart

setFocus

public void setFocus()
Called when focus is gained.

Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

getClearListener

public NodePropertiesView.CompositeCleared getClearListener()
Get current listener.

Returns:

setClearListener

public void setClearListener(NodePropertiesView.CompositeCleared clearListener)
Set a listener that will be called before next cleanup. After cleanup, listener is removed.

Parameters:
clearListener -

getComposite

public org.eclipse.swt.widgets.Composite getComposite()
Call this method to get a displayed composite. Note that a call to this method clears current composite.

Returns:

layout

public void layout()
Layout the panel.


cleanView

public void cleanView()
Clean view.