Modelers

org.topcased.modeler.editor.palette
Class ModelerPaletteManager

java.lang.Object
  extended by org.topcased.modeler.editor.palette.ModelerPaletteManager
All Implemented Interfaces:
IPaletteManager

public abstract class ModelerPaletteManager
extends java.lang.Object
implements IPaletteManager

A generic PaletteManager. Add the common tools for all editors. Subclasses should add their own categories. Creation : 02 jan. 2006


Constructor Summary
ModelerPaletteManager()
           
 
Method Summary
protected abstract  void createCategories()
          Creates the main categories of the palette.
 org.eclipse.gef.DragTracker getMarqueeDragTracker()
          Returns the current marquee to fit the selection to behavior
 org.eclipse.gef.palette.PaletteRoot getRoot()
          Returns the current palette root
protected abstract  void updateCategories()
          Update the main categories of the palette.
 void updatePalette()
          Creates or updates the palette contents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelerPaletteManager

public ModelerPaletteManager()
Method Detail

getRoot

public org.eclipse.gef.palette.PaletteRoot getRoot()
Description copied from interface: IPaletteManager
Returns the current palette root

Specified by:
getRoot in interface IPaletteManager
Returns:
the palette root
See Also:
IPaletteManager.getRoot()

updatePalette

public void updatePalette()
Description copied from interface: IPaletteManager
Creates or updates the palette contents

Specified by:
updatePalette in interface IPaletteManager
See Also:
IPaletteManager.updatePalette()

getMarqueeDragTracker

public org.eclipse.gef.DragTracker getMarqueeDragTracker()
Description copied from interface: IPaletteManager
Returns the current marquee to fit the selection to behavior

Specified by:
getMarqueeDragTracker in interface IPaletteManager
Returns:
the current marquee
See Also:
IPaletteManager.getMarqueeDragTracker()

createCategories

protected abstract void createCategories()
Creates the main categories of the palette. Subclasses should override this to provide their own categories.


updateCategories

protected abstract void updateCategories()
Update the main categories of the palette. Subclasses should override this to manage their own categories.


Modelers

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