public class HidePolicy extends AbstractPolicy
HidePolicy
can be installed on NodePart
to hide the
contents.adaptable
adaptable
Modifier and Type | Class and Description |
---|---|
class |
HidePolicy.ClearHoverHandlesOperation
Clears the hover handles for the given part upon execution of this
operation.
|
IAdaptable.Bound.Impl<T extends IAdaptable>
Constructor and Description |
---|
HidePolicy() |
Modifier and Type | Method and Description |
---|---|
protected ITransactionalOperation |
createDeselectOperation(NodePart part)
Returns an
ITransactionalOperation that removes the given
NodePart from the SelectionModel of the corresponding
IViewer . |
protected ITransactionalOperation |
createHideOperation(NodePart part)
|
protected ITransactionalOperation |
createOperation() |
protected ITransactionalOperation |
createUnfocusOperation(NodePart part)
Returns an
ITransactionalOperation that removes the given
NodePart from the FocusModel of the corresponding
IViewer . |
NodePart |
getHost() |
void |
hide()
Executes an operation on the history that hides the
host NodePart (and removes it from the FocusModel and
from the SelectionModel ). |
checkInitialized, commit, getOperation, init, isInitialized, locallyExecuteOperation, rollback
adaptableProperty, getAdaptable, setAdaptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptableProperty, getAdaptable, setAdaptable
protected ITransactionalOperation createDeselectOperation(NodePart part)
ITransactionalOperation
that removes the given
NodePart
from the SelectionModel
of the corresponding
IViewer
.part
- The NodePart
that is to be removed from the
SelectionModel
.ITransactionalOperation
that removes the given
NodePart
from the SelectionModel
.protected ITransactionalOperation createHideOperation(NodePart part)
part
- The NodePart
that is to be hidden.ITransactionalOperation
that adds the given
NodePart
to the HidingModel
of its
IViewer
.protected ITransactionalOperation createOperation()
createOperation
in class AbstractPolicy
protected ITransactionalOperation createUnfocusOperation(NodePart part)
ITransactionalOperation
that removes the given
NodePart
from the FocusModel
of the corresponding
IViewer
.part
- The NodePart
that is to be removed.ITransactionalOperation
that removes the given
NodePart
from the FocusModel
.public NodePart getHost()
public void hide()
host
NodePart
(and removes it from the FocusModel
and
from the SelectionModel
).Copyright (c) 2014 itemis AG and others. All rights reserved.