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
adaptable
Properties inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptable
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected ITransactionalOperation
Returns anITransactionalOperation
that removes the givenNodePart
from theSelectionModel
of the correspondingIViewer
.protected ITransactionalOperation
createHideOperation
(NodePart part) protected ITransactionalOperation
protected ITransactionalOperation
Returns anITransactionalOperation
that removes the givenNodePart
from theFocusModel
of the correspondingIViewer
.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
-
Constructor Details
-
HidePolicy
public HidePolicy()
-
-
Method Details
-
createDeselectOperation
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
- Parameters:
part
- TheNodePart
that is to be hidden.- Returns:
- An
ITransactionalOperation
that adds the givenNodePart
to theHidingModel
of itsIViewer
.
-
createOperation
- Specified by:
createOperation
in classAbstractPolicy
-
createUnfocusOperation
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
-
hide
public void hide()Executes an operation on the history that hides thehost
NodePart
(and removes it from theFocusModel
and from theSelectionModel
).
-