de.frag.umlplugin.uml
Class UMLDiagramComponent

java.lang.Object
  extended by de.frag.umlplugin.uml.UMLDiagramComponent
All Implemented Interfaces:
com.intellij.openapi.components.BaseComponent, com.intellij.openapi.components.PersistentStateComponent<org.jdom.Element>, com.intellij.openapi.components.ProjectComponent

public class UMLDiagramComponent
extends java.lang.Object
implements com.intellij.openapi.components.ProjectComponent, com.intellij.openapi.components.PersistentStateComponent<org.jdom.Element>

Project component for UML diagrams.


Field Summary
static java.lang.String TOOL_WINDOW_ID
           
static java.lang.String UML_DIAGRAM_COMPONENT
           
 
Constructor Summary
UMLDiagramComponent(com.intellij.openapi.project.Project project)
          Creates a new UML diagram component for given project.
 
Method Summary
 void disposeComponent()
           
 java.lang.String getComponentName()
           
 org.jdom.Element getState()
           
 void initComponent()
           
 void loadState(org.jdom.Element diagramsElement)
           
 void projectClosed()
           
 void projectOpened()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UML_DIAGRAM_COMPONENT

public static final java.lang.String UML_DIAGRAM_COMPONENT
See Also:
Constant Field Values

TOOL_WINDOW_ID

public static final java.lang.String TOOL_WINDOW_ID
See Also:
Constant Field Values
Constructor Detail

UMLDiagramComponent

public UMLDiagramComponent(@NotNull
                           com.intellij.openapi.project.Project project)
Creates a new UML diagram component for given project.

Parameters:
project - project to create component for
Method Detail

initComponent

public void initComponent()
Specified by:
initComponent in interface com.intellij.openapi.components.BaseComponent

disposeComponent

public void disposeComponent()
Specified by:
disposeComponent in interface com.intellij.openapi.components.BaseComponent

getComponentName

@NotNull
public java.lang.String getComponentName()
Specified by:
getComponentName in interface com.intellij.openapi.components.BaseComponent

projectOpened

public void projectOpened()
Specified by:
projectOpened in interface com.intellij.openapi.components.ProjectComponent

projectClosed

public void projectClosed()
Specified by:
projectClosed in interface com.intellij.openapi.components.ProjectComponent

getState

@Nullable
public org.jdom.Element getState()
Specified by:
getState in interface com.intellij.openapi.components.PersistentStateComponent<org.jdom.Element>

loadState

public void loadState(@NotNull
                      org.jdom.Element diagramsElement)
Specified by:
loadState in interface com.intellij.openapi.components.PersistentStateComponent<org.jdom.Element>