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
The
HidePolicy can be installed on NodePart to hide the
contents.-
Property Summary
Properties inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl
adaptableProperties inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptable -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassClears 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected ITransactionalOperationReturns anITransactionalOperationthat removes the givenNodePartfrom theSelectionModelof the correspondingIViewer.protected ITransactionalOperationcreateHideOperation(NodePart part) protected ITransactionalOperationprotected ITransactionalOperationReturns anITransactionalOperationthat removes the givenNodePartfrom theFocusModelof the correspondingIViewer.getHost()voidhide()Executes an operation on the history that hides thehostNodePart(and removes it from theFocusModeland from theSelectionModel).Methods inherited from class org.eclipse.gef.mvc.fx.policies.AbstractPolicy
checkInitialized, commit, getOperation, init, isInitialized, locallyExecuteOperation, rollbackMethods inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl
adaptableProperty, getAdaptable, setAdaptableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptable
-
Constructor Details
-
HidePolicy
public HidePolicy()
-
-
Method Details
-
createDeselectOperation
Returns anITransactionalOperationthat removes the givenNodePartfrom theSelectionModelof the correspondingIViewer.- Parameters:
part- TheNodePartthat is to be removed from theSelectionModel.- Returns:
- An
ITransactionalOperationthat removes the givenNodePartfrom theSelectionModel.
-
createHideOperation
- Parameters:
part- TheNodePartthat is to be hidden.- Returns:
- An
ITransactionalOperationthat adds the givenNodePartto theHidingModelof itsIViewer.
-
createOperation
- Specified by:
createOperationin classAbstractPolicy
-
createUnfocusOperation
Returns anITransactionalOperationthat removes the givenNodePartfrom theFocusModelof the correspondingIViewer.- Parameters:
part- TheNodePartthat is to be removed.- Returns:
- An
ITransactionalOperationthat removes the givenNodePartfrom theFocusModel.
-
getHost
-
hide
public void hide()Executes an operation on the history that hides thehostNodePart(and removes it from theFocusModeland from theSelectionModel).
-