Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.jboogie.kernel

Class ProjectImpl

com.gentleware.jboogie.kernel.ProjectImpl
All known Subclassifier:
PoseidonProject

All known implemented Interfaces:
Project


public abstract class ProjectImpl


A bundle of related objects: storage (with model factory and helpers), factories (for themes, parser, renderer) and diagrams.

This is only a default implementation that does many JBoogie-related initializations.


 Attribute Summary
private boolean  _diPulizing
 
private List  _diagramRenderers
 
protected boolean  _getOnlyLocalCommandFactories
 
private static boolean  _guiMode
This boolean can be set to true if we do not have a GUI running, for example when executing unit-tests  
private IdFactory  _idFactory
 
private static boolean  _importing
 
private JmiHelpers  _jmiHelpers
 
private Class  _topLevelModelClass
The parent (ancestor) of all model element classes. 
private List  _updateModelListeners
 
arrow_up
 

 Association Summary
private ConflictChecker  _conflictChecker
 
private ControllerFactory  _controllerFactory
 
protected DiAccessory  _diAccessory
 
protected DiCommandFactory  _diCommandFactory
 
protected DiCommandFactory  _diCommandFactoryLocal
 
private DiDestructor  _diDestructor
 
protected DiFactory  _diFactory
 
private DiHelpers  _diHelpers
 
private IdMap  _diIdMap
 
protected DiPulizerPool  _diPulizerPool
 
private HighlightManager  _highlightManager
 
private JmiCommandFactory  _jmiCommandFactory
 
private JmiCommandFactory  _jmiCommandFactoryLocal
 
private LayoutValidator  _layoutValidator
 
private ModelMapper  _modelMapper
 
private MouseMotionManager  _mouseMotionManager
 
protected NameGenerator  _nameGenerator
 
private CommonPasteHelper  _pasteHelper
 
private ProjectType  _projectType
 
public RapidButtonManager  _rapidButtonManager
 
private RendererFactory  _rendererFactory
Create storage first! Other constructors (e.g. 
private IdMap  _smIdMap
 
private Style  _style
 
private TargetManager  _targetManager
 
private UndoManager  _undoManager
 
arrow_up
 

 Constructor Summary
protected   ProjectImpl(ProjectType projectType)
 
arrow_up
 

 Method Summary
private static void   __initializer()
 
public final void   addDiagramRenderer(DiagramRenderer dr)
 
public void   addUpdateModelListener(UpdateModelListener updateModelListener)
 
protected ControllerFactory   createControllerFactory()
 
protected RendererFactory   createRendererFactory()
 
protected Style   createStyle()
 
protected TargetManager   createTargetManager()
 
public void   dispose()
Removes all references to the project from the rest of the program. 
public void   dumpModel()
 
public ConflictChecker   getConflictChecker()
 
public final ControllerFactory   getControllerFactory()
 
public final DiAccessory   getDiAccessory()
 
public DiCommandFactory   getDiCommandFactory()
 
public DiCommandFactory   getDiCommandFactoryLocal()
 
public final DiDestructor   getDiDestructor()
 
public final DiFactory   getDiFactory()
 
public final DiHelpers   getDiHelpers()
 
public DiId   getDiId(RefObject element)
 
public List   getDiId(Collection diElements)
 
public final IdMap   getDiIdMap()
 
public DiPulizerPool   getDiPulizerPool()
 
public Class   getDiagramEditorDropTarget()
 
public final List   getDiagramRenderers()
 
public final HighlightManager   getHighlightManager()
 
public Id   getId(RefObject element)
 
public IdFactory   getIdFactory()
 
public JmiCommandFactory   getJmiCommandFactory()
 
public JmiCommandFactory   getJmiCommandFactoryLocal()
 
public JmiHelpers   getJmiHelpers()
 
public final LayoutValidator   getLayoutValidator()
 
public final ProjectTypeMdrFacade   getMdrFacade()
 
public String   getMetamodelExtendName()
 
public String   getModelDescription()
 
public String   getModelInstanceName()
 
public final ModelMapper   getModelMapper()
 
public final MouseMotionManager   getMouseMotionManager()
 
public String   getName()
Must be re-defined in subclasses. 
public NameGenerator   getNameGenerator()
 
public final DiId   getNextDiId()
 
public DiId   getNextDiId(String globalId)
 
public final DiId   getNextDiId(String globalId, String customPrefix)
 
public final SmId   getNextSmId()
 
public SmId   getNextSmId(String globalId)
 
public final SmId   getNextSmId(String globalId, String customPrefix)
 
public final CommonPasteHelper   getPasteHelper()
 
public final int   getPresentationCountFor(RefObject element)
 
public RapidButtonManager   getRapidButtonManager()
 
public RendererFactory   getRendererFactory()
 
public SmId   getSmId(RefObject element)
 
public List   getSmId(Collection smElements)
 
public final IdMap   getSmIdMap()
 
public Style   getStyle()
 
public final TargetManager   getTargetManager()
 
public Class   getTopLevelClass()
This method returns the top level class of the underlying model, i.e. 
public ProjectType   getType()
 
public URL   getURL()
Must be re-defined in subclasses. 
public final UndoManager   getUndoManager()
 
public List   getUpdateModelListeners()
 
public final void   handleDiRemoved(DiId diId)
 
public final void   handleSmRemoved(SmId smId)
 
public boolean   hasDiId(RefObject element)
 
public boolean   hasId(RefObject element)
 
public boolean   hasSmId(RefObject element)
 
protected final void   initProject(boolean startupMetamodel)
This is only so that DefaultProject does not have to do all inits of the parent class. 
public static boolean   isGuiMode()
 
public static boolean   isImporting()
 
public final boolean   isModelClassInstance(Object obj)
Tests, if the given object is an instance of any of the element classes of the underlying model. 
public boolean   needsSave()
 
public final void   removeDiagramRenderer(DiagramRenderer dr)
 
public void   removeUpdateModelListener(UpdateModelListener updateModelListener)
 
public void   setConflictChecker(ConflictChecker conflictChecker)
only use for testing purposes! this method should be considered to be private!  
public void   setDiCommandFactory(DiCommandFactory diCommandFactory)
 
public void   setGlobalId(Id id, String globalId)
 
public void   setIdFactory(IdFactory idFactory)
 
public static void   setImporting(boolean b)
 
public void   setIsDipulizing(boolean b)
 
public void   setJmiCommandFactory(JmiCommandFactory jmiCommandFactory)
 
public void   setName(String n)
Must be re-defined in subclasses. 
public void   setNameGenerator(NameGenerator nameGenerator)
 
public static void   setNonGuiMode()
Uni-Test-Clients of Project can disable the Projectbrowser-Actions like setting icons etc when the project changes  
protected void   setPasteHelper(CommonPasteHelper pasteHelper)
 
public void   setTopLevelModelClass(Class top)
 
public void   setUndoManager(UndoManager undoManager)
 
public boolean   updateProjectBeforeAction()
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

_diPulizing

private boolean _diPulizing

arrow_up


_diagramRenderers

private List _diagramRenderers

arrow_up


_getOnlyLocalCommandFactories

protected boolean _getOnlyLocalCommandFactories

arrow_up


_guiMode

private static boolean _guiMode

This boolean can be set to true if we do not have a GUI running, for example when executing unit-tests  
arrow_up


_idFactory

private IdFactory _idFactory

arrow_up


_importing

private static boolean _importing

arrow_up


_jmiHelpers

private JmiHelpers _jmiHelpers

arrow_up


_topLevelModelClass

private Class _topLevelModelClass

The parent (ancestor) of all model element classes.  
arrow_up


_updateModelListeners

private List _updateModelListeners

arrow_up
 Association Detail

_conflictChecker

private ConflictChecker _conflictChecker

arrow_up


_controllerFactory

private ControllerFactory _controllerFactory

arrow_up


_diAccessory

protected DiAccessory _diAccessory

arrow_up


_diCommandFactory

protected DiCommandFactory _diCommandFactory

arrow_up


_diCommandFactoryLocal

protected DiCommandFactory _diCommandFactoryLocal

arrow_up


_diDestructor

private DiDestructor _diDestructor

arrow_up


_diFactory

protected DiFactory _diFactory

arrow_up


_diHelpers

private DiHelpers _diHelpers

arrow_up


_diIdMap

private IdMap _diIdMap

arrow_up


_diPulizerPool

protected DiPulizerPool _diPulizerPool

arrow_up


_highlightManager

private HighlightManager _highlightManager

arrow_up


_jmiCommandFactory

private JmiCommandFactory _jmiCommandFactory

arrow_up


_jmiCommandFactoryLocal

private JmiCommandFactory _jmiCommandFactoryLocal

arrow_up


_layoutValidator

private LayoutValidator _layoutValidator

arrow_up


_modelMapper

private ModelMapper _modelMapper

arrow_up


_mouseMotionManager

private MouseMotionManager _mouseMotionManager

arrow_up


_nameGenerator

protected NameGenerator _nameGenerator

arrow_up


_pasteHelper

private CommonPasteHelper _pasteHelper

arrow_up


_projectType

private ProjectType _projectType

arrow_up


_rapidButtonManager

public RapidButtonManager _rapidButtonManager

arrow_up


_rendererFactory

private RendererFactory _rendererFactory

Create storage first! Other constructors (e.g. model factory) depend on an existing storage.  
arrow_up


_smIdMap

private IdMap _smIdMap

arrow_up


_style

private Style _style

arrow_up


_targetManager

private TargetManager _targetManager

arrow_up


_undoManager

private UndoManager _undoManager

arrow_up
 Constructor Detail

ProjectImpl

protected ProjectImpl ProjectImpl(ProjectType projectType)

Parameters:
projectType -
Returns:
arrow_up
 Method Detail

__initializer

private static void __initializer()

arrow_up


addDiagramRenderer

public final void addDiagramRenderer(DiagramRenderer dr)

Parameters:
dr -
arrow_up


addUpdateModelListener

public void addUpdateModelListener(UpdateModelListener updateModelListener)

Parameters:
updateModelListener -
arrow_up


createControllerFactory

protected ControllerFactory createControllerFactory()

Returns:
arrow_up


createRendererFactory

protected RendererFactory createRendererFactory()

Returns:
arrow_up


createStyle

protected Style createStyle()

Returns:
arrow_up


createTargetManager

protected TargetManager createTargetManager()

Returns:
arrow_up


dispose

public void dispose()


Removes all references to the project from the rest of the program. Should be called whenever a project is closed.  
arrow_up


dumpModel

public void dumpModel()

arrow_up


getConflictChecker

public ConflictChecker getConflictChecker()

Returns:
arrow_up


getControllerFactory

public final ControllerFactory getControllerFactory()

Returns:
arrow_up


getDiAccessory

public final DiAccessory getDiAccessory()

Returns:
arrow_up


getDiCommandFactory

public DiCommandFactory getDiCommandFactory()

Returns:
arrow_up


getDiCommandFactoryLocal

public DiCommandFactory getDiCommandFactoryLocal()

Returns:
arrow_up


getDiDestructor

public final DiDestructor getDiDestructor()

Returns:
arrow_up


getDiFactory

public final DiFactory getDiFactory()

Returns:
arrow_up


getDiHelpers

public final DiHelpers getDiHelpers()

Returns:
arrow_up


getDiId

public DiId getDiId(RefObject element)

Parameters:
element -
Returns:
arrow_up


getDiId

public List getDiId(Collection diElements)

Parameters:
diElements -
Returns:
arrow_up


getDiIdMap

public final IdMap getDiIdMap()

Returns:
arrow_up


getDiPulizerPool

public DiPulizerPool getDiPulizerPool()

Returns:
arrow_up


getDiagramEditorDropTarget

public Class getDiagramEditorDropTarget()

Returns:
arrow_up


getDiagramRenderers

public final List getDiagramRenderers()

Returns:
arrow_up


getHighlightManager

public final HighlightManager getHighlightManager()

Returns:
arrow_up


getId

public Id getId(RefObject element)

Parameters:
element -
Returns:
arrow_up


getIdFactory

public IdFactory getIdFactory()

Returns:
arrow_up


getJmiCommandFactory

public JmiCommandFactory getJmiCommandFactory()

Returns:
arrow_up


getJmiCommandFactoryLocal

public JmiCommandFactory getJmiCommandFactoryLocal()

Returns:
arrow_up


getJmiHelpers

public JmiHelpers getJmiHelpers()

Returns:
arrow_up


getLayoutValidator

public final LayoutValidator getLayoutValidator()

Returns:
arrow_up


getMdrFacade

public final ProjectTypeMdrFacade getMdrFacade()

Returns:
arrow_up


getMetamodelExtendName

public String getMetamodelExtendName()

Returns:
arrow_up


getModelDescription

public String getModelDescription()

Returns:
arrow_up


getModelInstanceName

public String getModelInstanceName()

Returns:
arrow_up


getModelMapper

public final ModelMapper getModelMapper()

Returns:
arrow_up


getMouseMotionManager

public final MouseMotionManager getMouseMotionManager()

Returns:
arrow_up


getName

public String getName()


Must be re-defined in subclasses.  
Returns:
arrow_up


getNameGenerator

public NameGenerator getNameGenerator()

Returns:
arrow_up


getNextDiId

public final DiId getNextDiId()

Returns:
arrow_up


getNextDiId

public DiId getNextDiId(String globalId)

Parameters:
globalId -
Returns:
arrow_up


getNextDiId

public final DiId getNextDiId(String globalId, String customPrefix)

Parameters:
globalId -
customPrefix -
Returns:
arrow_up


getNextSmId

public final SmId getNextSmId()

Returns:
arrow_up


getNextSmId

public SmId getNextSmId(String globalId)

Parameters:
globalId -
Returns:
arrow_up


getNextSmId

public final SmId getNextSmId(String globalId, String customPrefix)

Parameters:
globalId -
customPrefix -
Returns:
arrow_up


getPasteHelper

public final CommonPasteHelper getPasteHelper()

Returns:
arrow_up


getPresentationCountFor

public final int getPresentationCountFor(RefObject element)

Parameters:
element -
Returns:
arrow_up


getRapidButtonManager

public RapidButtonManager getRapidButtonManager()

Returns:
arrow_up


getRendererFactory

public RendererFactory getRendererFactory()

Returns:
arrow_up


getSmId

public SmId getSmId(RefObject element)

Parameters:
element -
Returns:
arrow_up


getSmId

public List getSmId(Collection smElements)

Parameters:
smElements -
Returns:
arrow_up


getSmIdMap

public final IdMap getSmIdMap()

Returns:
arrow_up


getStyle

public Style getStyle()

Returns:
arrow_up


getTargetManager

public final TargetManager getTargetManager()

Returns:
arrow_up


getTopLevelClass

public Class getTopLevelClass()


This method returns the top level class of the underlying model, i.e. the base class for all model elements.  
Returns:
Top level class of the model or null.
arrow_up


getType

public ProjectType getType()

Returns:
arrow_up


getURL

public URL getURL()


Must be re-defined in subclasses.  
Returns:
arrow_up


getUndoManager

public final UndoManager getUndoManager()

Returns:
arrow_up


getUpdateModelListeners

public List getUpdateModelListeners()

Returns:
arrow_up


handleDiRemoved

public final void handleDiRemoved(DiId diId)

Parameters:
diId -
arrow_up


handleSmRemoved

public final void handleSmRemoved(SmId smId)

Parameters:
smId -
arrow_up


hasDiId

public boolean hasDiId(RefObject element)

Parameters:
element -
Returns:
arrow_up


hasId

public boolean hasId(RefObject element)

Parameters:
element -
Returns:
arrow_up


hasSmId

public boolean hasSmId(RefObject element)

Parameters:
element -
Returns:
arrow_up


initProject

protected final void initProject(boolean startupMetamodel)


This is only so that DefaultProject does not have to do all inits of the parent class. This way, DefaultProject can be started faster. All other subclasses have to call initProject() right after construction.  
Parameters:
startupMetamodel -
arrow_up


isGuiMode

public static boolean isGuiMode()

Returns:
arrow_up


isImporting

public static boolean isImporting()

Returns:
arrow_up


isModelClassInstance

public final boolean isModelClassInstance(Object obj)


Tests, if the given object is an instance of any of the element classes of the underlying model.  
Parameters:
obj - Instance to be tested.
Returns:
True, if the object is an instance of a model element class, otherwise false.
arrow_up


needsSave

public boolean needsSave()

Returns:
arrow_up


removeDiagramRenderer

public final void removeDiagramRenderer(DiagramRenderer dr)

Parameters:
dr -
arrow_up


removeUpdateModelListener

public void removeUpdateModelListener(UpdateModelListener updateModelListener)

Parameters:
updateModelListener -
arrow_up


setConflictChecker

public void setConflictChecker(ConflictChecker conflictChecker)


only use for testing purposes! this method should be considered to be private!  
Parameters:
conflictChecker -
arrow_up


setDiCommandFactory

public void setDiCommandFactory(DiCommandFactory diCommandFactory)

Parameters:
diCommandFactory -
arrow_up


setGlobalId

public void setGlobalId(Id id, String globalId)

Parameters:
id -
globalId -
arrow_up


setIdFactory

public void setIdFactory(IdFactory idFactory)

Parameters:
idFactory -
arrow_up


setImporting

public static void setImporting(boolean b)

Parameters:
b -
arrow_up


setIsDipulizing

public void setIsDipulizing(boolean b)

Parameters:
b -
arrow_up


setJmiCommandFactory

public void setJmiCommandFactory(JmiCommandFactory jmiCommandFactory)

Parameters:
jmiCommandFactory -
arrow_up


setName

public void setName(String n)


Must be re-defined in subclasses.  
Parameters:
n -
arrow_up


setNameGenerator

public void setNameGenerator(NameGenerator nameGenerator)

Parameters:
nameGenerator -
arrow_up


setNonGuiMode

public static void setNonGuiMode()


Uni-Test-Clients of Project can disable the Projectbrowser-Actions like setting icons etc when the project changes  
arrow_up


setPasteHelper

protected void setPasteHelper(CommonPasteHelper pasteHelper)

Parameters:
pasteHelper -
arrow_up


setTopLevelModelClass

public void setTopLevelModelClass(Class top)

Parameters:
top -
arrow_up


setUndoManager

public void setUndoManager(UndoManager undoManager)

Parameters:
undoManager -
arrow_up


updateProjectBeforeAction

public boolean updateProjectBeforeAction()

Returns:
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.