ptolemy.actor.gt
Class GTEntityUtils.RestoreAppearanceChangeRequest

java.lang.Object
  extended by ptolemy.kernel.util.ChangeRequest
      extended by ptolemy.actor.gt.GTEntityUtils.RestoreAppearanceChangeRequest
Enclosing class:
GTEntityUtils

private static class GTEntityUtils.RestoreAppearanceChangeRequest
extends ChangeRequest

A change request to restore the default icon of an entity.

Since:
Ptolemy II 7.1
Version:
$Id: GTEntityUtils.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Thomas Huining Feng
Accepted Rating:
Red (tfeng)
Proposed Rating:
Yellow (tfeng)

Field Summary
private  GTEntity _entity
          The entity whose icon is to be restored.
 
Constructor Summary
GTEntityUtils.RestoreAppearanceChangeRequest(GTEntity entity)
          Construct a change request to restore the default icon for an entity.
 
Method Summary
protected  void _execute()
          Execute the change request and restore the default icon for the entity.
 
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

_entity

private GTEntity _entity
The entity whose icon is to be restored.

Constructor Detail

GTEntityUtils.RestoreAppearanceChangeRequest

GTEntityUtils.RestoreAppearanceChangeRequest(GTEntity entity)
Construct a change request to restore the default icon for an entity.

Parameters:
entity - The entity whose icon is to be restored.
Method Detail

_execute

protected void _execute()
                 throws java.lang.Exception
Execute the change request and restore the default icon for the entity.

Specified by:
_execute in class ChangeRequest
Throws:
java.lang.Exception - The default icon cannot be set for the entity.