org.acm.seguin.ide.elixir
Class UMLViewManager

java.lang.Object
  extended by org.acm.seguin.ide.elixir.UMLViewManager

public class UMLViewManager
extends java.lang.Object

View manager for a particular UML file

Author:
Chris Seguin

Constructor Summary
UMLViewManager(UMLDocManager parent, java.lang.String name, java.lang.String base)
          Constructor for the UMLViewManager object
 
Method Summary
 void closed()
          Notify the view manager that it has been closed
 void closing()
          Notify the view manager that it is about to close
 ActionEx[] getActions()
          Get the actions currently supported (may vary with state)
 net.sourceforge.jrefactory.uml.UMLPackage getDiagram()
          Gets the Diagram attribute of the UMLViewManager object
 DocManager getDocManager()
          Get the document manager responsible for this view
 java.lang.String getTitle()
          Get the title of the document being viewed
 javax.swing.JComponent getView()
          Get the view component which renders/edits the document
 boolean okToClose()
          Determine whether it is ok to close the view.
 boolean reload()
          Reload the document from its storage (if it has one).
 boolean save()
          Save the current document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLViewManager

public UMLViewManager(UMLDocManager parent,
                      java.lang.String name,
                      java.lang.String base)
Constructor for the UMLViewManager object

Parameters:
parent - the parent document manager
name - the name of the file to view
base - Description of Parameter
Method Detail

getActions

public ActionEx[] getActions()
Get the actions currently supported (may vary with state)

Returns:
The Actions value

getDiagram

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

Returns:
The Diagram value

getDocManager

public DocManager getDocManager()
Get the document manager responsible for this view

Returns:
The DocManager value

getTitle

public java.lang.String getTitle()
Get the title of the document being viewed

Returns:
The Title value

getView

public javax.swing.JComponent getView()
Get the view component which renders/edits the document

Returns:
The View value

closed

public void closed()
Notify the view manager that it has been closed


closing

public void closing()
Notify the view manager that it is about to close


okToClose

public boolean okToClose()
Determine whether it is ok to close the view.

Returns:
Description of the Returned Value

reload

public boolean reload()
Reload the document from its storage (if it has one).

Returns:
Description of the Returned Value

save

public boolean save()
Save the current document.

Returns:
Description of the Returned Value