Modelers

org.topcased.modeler.editor.properties.sections.graphics
Class AbstractGraphicPropertySection

java.lang.Object
  extended by org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
      extended by org.topcased.modeler.editor.properties.sections.graphics.AbstractGraphicPropertySection
All Implemented Interfaces:
org.eclipse.ui.views.properties.tabbed.ISection
Direct Known Subclasses:
BackgroundColorPropertySection, DiagramElementOrientationPropertySection, EdgeObjectVisibilityPropertySection, FontPropertySection, ForegroundColorPropertySection, PageFormatPropertySection, PageMarginPropertySection, PageOrientationPropertySection, RouterPropertySection, VisibilityPropertySection

public abstract class AbstractGraphicPropertySection
extends org.eclipse.ui.views.properties.tabbed.AbstractPropertySection

An abstract implementation of a section associated with a graphical property in a tab in the tabbed property sheet page for the modeler. Creation 5 avr. 2006 Updated 21 Nov. 2007


Field Summary
 
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
STANDARD_LABEL_WIDTH
 
Constructor Summary
AbstractGraphicPropertySection()
           
 
Method Summary
 void aboutToBeHidden()
           
 void aboutToBeShown()
           
protected  void addListener()
          Add model listener
 void createControls(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
           
protected  DiagramElement getDiagElt()
           
protected  java.util.List<DiagramElement> getDiagEltList()
           
protected  Adapter getModelListener()
          Get the model Listener
protected  org.eclipse.gef.EditPart getSelectedEditPart()
           
protected abstract  void handleModelChanged(Notification msg)
          This method is called when an event occured on the model objects
protected  void removeListener()
          Remove model listener
 void setInput(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
           
 
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, refresh, shouldUseExtraSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGraphicPropertySection

public AbstractGraphicPropertySection()
Method Detail

createControls

public void createControls(org.eclipse.swt.widgets.Composite parent,
                           org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
Specified by:
createControls in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
createControls in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
See Also:
ISection.createControls(org.eclipse.swt.widgets.Composite, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)

setInput

public void setInput(org.eclipse.ui.IWorkbenchPart part,
                     org.eclipse.jface.viewers.ISelection selection)
Specified by:
setInput in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
setInput in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
See Also:
AbstractPropertySection.setInput(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)

aboutToBeShown

public void aboutToBeShown()
Specified by:
aboutToBeShown in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
aboutToBeShown in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
See Also:
AbstractPropertySection.aboutToBeShown()

aboutToBeHidden

public void aboutToBeHidden()
Specified by:
aboutToBeHidden in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
aboutToBeHidden in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
See Also:
AbstractPropertySection.aboutToBeHidden()

removeListener

protected void removeListener()
Remove model listener


addListener

protected void addListener()
Add model listener


getDiagElt

protected DiagramElement getDiagElt()
Returns:
the diagElt

getDiagEltList

protected java.util.List<DiagramElement> getDiagEltList()
Returns:
the diagEltList

getSelectedEditPart

protected org.eclipse.gef.EditPart getSelectedEditPart()
Returns:
the selectedEditPart

getModelListener

protected Adapter getModelListener()
Get the model Listener

Returns:
Adapter

handleModelChanged

protected abstract void handleModelChanged(Notification msg)
This method is called when an event occured on the model objects

Parameters:
msg - the event notification

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.