org.acm.seguin.ide.jbuilder
Class JBuilderPlugin

java.lang.Object
  extended by com.borland.primetime.viewer.AbstractNodeViewer
      extended by org.acm.seguin.ide.jbuilder.JBuilderPlugin

public class JBuilderPlugin
extends com.borland.primetime.viewer.AbstractNodeViewer

File node representing the JBuilder Plugin

Author:
Mike Atkinson

Field Summary
static java.lang.String JAVASTYLE_DIR
           
 
Constructor Summary
JBuilderPlugin(Context context)
           
 
Method Summary
 javax.swing.JComponent createStructureComponent()
           
 javax.swing.JComponent createViewerComponent()
           
 net.sourceforge.jrefactory.uml.UMLPackage getDiagram()
          Gets the Diagram attribute of the JBuilderPlugin object
 javax.swing.Icon getDisplayIcon()
          Gets the DisplayIcon attribute of the JBuilderPlugin object
 java.lang.String getDisplayName()
          Gets the DisplayName attribute of the JBuilderPlugin object
 java.lang.String getViewerTitle()
           
static void initJRefactory1()
           
static void initJRefactory2()
           
static void initOpenTool(byte majorVersion, byte minorVersion)
          Initialize the open tools
 boolean isModified()
          Determines if the diagram has been modified
 boolean isPersistant()
          Gets the Persistant attribute of the JBuilderPlugin object
 void save()
          Saves the diagram to the disk
 void saveAs(Url url)
          Description of the Method
 void setDiagram(net.sourceforge.jrefactory.uml.UMLPackage diagram)
          Sets the Diagram attribute of the JBuilderPlugin object
static void showJRefactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVASTYLE_DIR

public static java.lang.String JAVASTYLE_DIR
Constructor Detail

JBuilderPlugin

public JBuilderPlugin(Context context)
Method Detail

createViewerComponent

public javax.swing.JComponent createViewerComponent()

createStructureComponent

public javax.swing.JComponent createStructureComponent()

getViewerTitle

public java.lang.String getViewerTitle()

setDiagram

public void setDiagram(net.sourceforge.jrefactory.uml.UMLPackage diagram)
Sets the Diagram attribute of the JBuilderPlugin object

Parameters:
diagram - The new Diagram value

getDiagram

public net.sourceforge.jrefactory.uml.UMLPackage getDiagram()
Gets the Diagram attribute of the JBuilderPlugin object

Returns:
The Diagram value

getDisplayIcon

public javax.swing.Icon getDisplayIcon()
Gets the DisplayIcon attribute of the JBuilderPlugin object

Returns:
The DisplayIcon value

getDisplayName

public java.lang.String getDisplayName()
Gets the DisplayName attribute of the JBuilderPlugin object

Returns:
The DisplayName value

isModified

public boolean isModified()
Determines if the diagram has been modified

Returns:
true if it has

isPersistant

public boolean isPersistant()
Gets the Persistant attribute of the JBuilderPlugin object

Returns:
The Persistant value

initOpenTool

public static void initOpenTool(byte majorVersion,
                                byte minorVersion)
Initialize the open tools

Parameters:
majorVersion - the version number
minorVersion - the version number

initJRefactory1

public static void initJRefactory1()

initJRefactory2

public static void initJRefactory2()

showJRefactory

public static void showJRefactory()

save

public void save()
          throws java.io.IOException,
                 InvalidUrlException
Saves the diagram to the disk

Throws:
java.io.IOException - Description of Exception
InvalidUrlException - Description of Exception

saveAs

public void saveAs(Url url)
            throws java.io.IOException,
                   InvalidUrlException,
                   DuplicateNodeException
Description of the Method

Parameters:
url - Description of Parameter
Throws:
java.io.IOException - Description of Exception
InvalidUrlException - Description of Exception
DuplicateNodeException - Description of Exception