ptolemy.vergil.gt
Class GTFrameTools.ModelChangeRequest

java.lang.Object
  extended by ptolemy.kernel.util.ChangeRequest
      extended by ptolemy.vergil.gt.GTFrameTools.ModelChangeRequest
Enclosing class:
GTFrameTools

public static class GTFrameTools.ModelChangeRequest
extends ChangeRequest


Field Summary
private  BasicGraphFrame _frame
           
private  CompositeEntity _model
           
private  CompositeEntity _oldModel
           
private  boolean _undoable
           
private  UndoAction _undoAction
           
 
Constructor Summary
GTFrameTools.ModelChangeRequest(java.lang.Object originator, BasicGraphFrame frame, CompositeEntity model)
           
GTFrameTools.ModelChangeRequest(java.lang.Object originator, BasicGraphFrame frame, CompositeEntity model, UndoAction undoAction)
           
 
Method Summary
protected  void _execute()
          Execute the change.
 void setUndoable(boolean undoable)
           
 
Methods inherited from class ptolemy.kernel.util.ChangeRequest
addChangeListener, execute, getDescription, getLocality, getSource, isErrorReported, isPersistent, isStructuralChange, removeChangeListener, setDescription, setErrorReported, setListeners, setPersistent, waitForCompletion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_frame

private BasicGraphFrame _frame

_model

private CompositeEntity _model

_oldModel

private CompositeEntity _oldModel

_undoAction

private UndoAction _undoAction

_undoable

private boolean _undoable
Constructor Detail

GTFrameTools.ModelChangeRequest

public GTFrameTools.ModelChangeRequest(java.lang.Object originator,
                                       BasicGraphFrame frame,
                                       CompositeEntity model)

GTFrameTools.ModelChangeRequest

public GTFrameTools.ModelChangeRequest(java.lang.Object originator,
                                       BasicGraphFrame frame,
                                       CompositeEntity model,
                                       UndoAction undoAction)
Method Detail

setUndoable

public void setUndoable(boolean undoable)

_execute

protected void _execute()
                 throws java.lang.Exception
Description copied from class: ChangeRequest
Execute the change. Derived classes must implement this method. Any exception may be thrown if the change fails.

Specified by:
_execute in class ChangeRequest
Throws:
java.lang.Exception - If the change fails.