Package org.eclipse.gef.zest.fx.policies
Class HidePolicy
- java.lang.Object
-
- org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<IVisualPart<? extends javafx.scene.Node>>
-
- org.eclipse.gef.mvc.fx.policies.AbstractPolicy
-
- org.eclipse.gef.zest.fx.policies.HidePolicy
-
- All Implemented Interfaces:
IAdaptable.Bound<IVisualPart<? extends javafx.scene.Node>>
,IPolicy
public class HidePolicy extends AbstractPolicy
TheHidePolicy
can be installed onNodePart
to hide the contents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
HidePolicy.ClearHoverHandlesOperation
Clears the hover handles for the given part upon execution of this operation.-
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable>
-
-
Constructor Summary
Constructors Constructor Description HidePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ITransactionalOperation
createDeselectOperation(NodePart part)
Returns anITransactionalOperation
that removes the givenNodePart
from theSelectionModel
of the correspondingIViewer
.protected ITransactionalOperation
createHideOperation(NodePart part)
protected ITransactionalOperation
createOperation()
protected ITransactionalOperation
createUnfocusOperation(NodePart part)
Returns anITransactionalOperation
that removes the givenNodePart
from theFocusModel
of the correspondingIViewer
.NodePart
getHost()
void
hide()
Executes an operation on the history that hides thehost
NodePart
(and removes it from theFocusModel
and from theSelectionModel
).-
Methods inherited from class org.eclipse.gef.mvc.fx.policies.AbstractPolicy
checkInitialized, commit, getOperation, init, isInitialized, locallyExecuteOperation, rollback
-
Methods inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl
adaptableProperty, getAdaptable, setAdaptable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptable
-
-
-
-
Method Detail
-
createDeselectOperation
protected ITransactionalOperation createDeselectOperation(NodePart part)
Returns anITransactionalOperation
that removes the givenNodePart
from theSelectionModel
of the correspondingIViewer
.- Parameters:
part
- TheNodePart
that is to be removed from theSelectionModel
.- Returns:
- An
ITransactionalOperation
that removes the givenNodePart
from theSelectionModel
.
-
createHideOperation
protected ITransactionalOperation createHideOperation(NodePart part)
- Parameters:
part
- TheNodePart
that is to be hidden.- Returns:
- An
ITransactionalOperation
that adds the givenNodePart
to theHidingModel
of itsIViewer
.
-
createOperation
protected ITransactionalOperation createOperation()
- Specified by:
createOperation
in classAbstractPolicy
-
createUnfocusOperation
protected ITransactionalOperation createUnfocusOperation(NodePart part)
Returns anITransactionalOperation
that removes the givenNodePart
from theFocusModel
of the correspondingIViewer
.- Parameters:
part
- TheNodePart
that is to be removed.- Returns:
- An
ITransactionalOperation
that removes the givenNodePart
from theFocusModel
.
-
getHost
public NodePart getHost()
-
hide
public void hide()
Executes an operation on the history that hides thehost
NodePart
(and removes it from theFocusModel
and from theSelectionModel
).
-
-