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.poseidon

Class PoseidonCoreConnector


public final class PoseidonCoreConnector

Facade to Plugins that want to address Poseidon internals. This class contains methods for accessing the UI of Poseidon and the settings. Other classes control resource loading and access to the project's run time data.

Please note that this class is preliminary, and we will probably extend this class to give access to more Poseidon features. Also, more Connector classes may be introduced in versions later than 1.2.

See also:
PoseidonProjectConnector
PoseidonResourceConnector


 Method Summary
public static void   enablePlugin(String name , String codebase , String filepath , boolean state )
Enables/disables a plugin, if it is installed. 
public static Diagram   getCurrentDiagram()
Returns the focussed object (set by setTarget), or null. 
public static String   getProductLine()
Returns the type of Poseidon: 'CE', 'SE', 'DE'. 
public static String   getProjectDirectory()
Returns the path to the project directory. 
public static String   getSettingsDirectory()
Returns the path to the settings directory (something like '$HOME/poseidon/SE'). 
public static String   getStartupDirectory()
Returns the path to the startup directory. 
public static Target   getTarget()
Returns the focussed object (set by setTarget), or null. 
public static String   getVersionNumber()
Returns Poseidon's version number in format 'a. 
public static boolean   isPluginEnabled(String name )
Checks if the named plugin is running. 
public static boolean   isPluginInstalled(String name )
Checks if the named plugin is installed in Poseidon. 
public static boolean   isStandalone()
Returns true if Poseidon has been started on its own, false if it is a Module in Forte or Netbeans. 
public static void   logMessage(String msg )
Logs to the Poseidon. 
public static void   setSelectedItem(Object o )
All panes of Poseidon try to show the given object. 
arrow_up
 

 

 Method Detail

enablePlugin

public static void enablePlugin(String name , String codebase , String filepath , boolean state )

Enables/disables a plugin, if it is installed. Does nothing if the plugin is not installed. To find out if a plugin is installed, call isPluginInstalled.

Currently, controlling plugins when non-standalone does not work really good. 

arrow_up
 
 

getCurrentDiagram

public static Diagram getCurrentDiagram()

Returns the focussed object (set by setTarget), or null. 
arrow_up
 
 

getProductLine

public static String getProductLine()

Returns the type of Poseidon: 'CE', 'SE', 'DE'. 
arrow_up
 
 

getProjectDirectory

public static String getProjectDirectory()

Returns the path to the project directory. 
arrow_up
 
 

getSettingsDirectory

public static String getSettingsDirectory()

Returns the path to the settings directory (something like '$HOME/poseidon/SE'). 
arrow_up
 
 

getStartupDirectory

public static String getStartupDirectory()

Returns the path to the startup directory. 
arrow_up
 
 

getTarget

public static Target getTarget()

Returns the focussed object (set by setTarget), or null. 
arrow_up
 
 

getVersionNumber

public static String getVersionNumber()

Returns Poseidon's version number in format 'a.b'. Only the first two version string (major and minor) are returned, the third number (maintenance) is not printed. 
arrow_up
 
 

isPluginEnabled

public static boolean isPluginEnabled(String name )

Checks if the named plugin is running.
Returns:
True if the plugin is running (ie, installed AND enabled).
 
arrow_up
 
 

isPluginInstalled

public static boolean isPluginInstalled(String name )

Checks if the named plugin is installed in Poseidon.
Returns:
True if the plugin is installed (no matter if enabled or not).
 
arrow_up
 
 

isStandalone

public static boolean isStandalone()

Returns true if Poseidon has been started on its own, false if it is a Module in Forte or Netbeans. 
arrow_up
 
 

logMessage

public static void logMessage(String msg )

Logs to the Poseidon.log in the `getSettingsDirectory()` . 
arrow_up
 
 

setSelectedItem

public static void setSelectedItem(Object o )

All panes of Poseidon try to show the given object. 
arrow_up
 

Created  2003 - 3 - 4

    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 2001 Gentleware AG, Vogt-Kölln-Str.30, 22527 Hamburg, Germany. All Rights Reserved.

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