|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.commands.Command
org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand
Command that sets the view's mutability. if a view is Mutability state is used by the Diagram Listener to decide if a view can move from the transient childern list of its container to the persisted list. so a mutable view will never be persisted keep in mind that the mutability state of the view is a transient state so as soon as the model is closed and oppened again all views will be immutable.
| Constructor Summary | |
SetViewMutabilityCommand(IAdaptable viewAdapter,
boolean immutable)
Creates a command instance. |
|
SetViewMutabilityCommand(java.util.List viewAdapters,
boolean immutable)
Creates a command instance. |
|
| Method Summary | |
void |
execute()
|
java.util.Collection |
getAffectedObjects()
Returns the view that would be affected if this command were executed, undone, or redone. |
protected java.util.List |
getViewAdapters()
gets an unmodifiable copy of the cached view adapters. |
static SetViewMutabilityCommand |
makeImmutable(IAdaptable viewAdapter)
Convenience method returning a command to make the supplied view immutable. |
static SetViewMutabilityCommand |
makeImmutable(java.util.List viewAdapters)
Convenience method returning a command to make the supplied views immutable. |
static SetViewMutabilityCommand |
makeMutable(IAdaptable viewAdapter)
Convenience method returning a command to make the supplied view mutable. |
static SetViewMutabilityCommand |
makeMutable(java.util.List viewAdapters)
Convenience method returning a command to make the supplied views mutable. |
void |
redo()
|
void |
undo()
|
| Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SetViewMutabilityCommand(IAdaptable viewAdapter,
boolean immutable)
viewAdapter - an IAdaptable that adapts to Viewimmutable - immutable state
public SetViewMutabilityCommand(java.util.List viewAdapters,
boolean immutable)
viewAdapters - a list of IAdaptable objects that adapts to Viewimmutable - immutable state| Method Detail |
public static SetViewMutabilityCommand makeMutable(java.util.List viewAdapters)
viewAdapters - views to be associated with the command
SetViewMutabilityCommandpublic static SetViewMutabilityCommand makeMutable(IAdaptable viewAdapter)
viewAdapter - view to be associated with the command
SetViewMutabilityCommandpublic static SetViewMutabilityCommand makeImmutable(java.util.List viewAdapters)
viewAdapters - views to be associated with the command
SetViewMutabilityCommandpublic static SetViewMutabilityCommand makeImmutable(IAdaptable viewAdapter)
viewAdapter - views to be associated with the command
SetViewMutabilityCommandprotected java.util.List getViewAdapters()
public void execute()
public java.util.Collection getAffectedObjects()
public void redo()
public void undo()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.