public class FeatureTreeEditor extends java.lang.Object implements ICdmEntitySessionEnabled, org.eclipse.jface.viewers.ISelectionChangedListener, IE4ViewerPart, IE4SavablePart, IPartContentHasDetails, IPartContentHasSupplementalData, IContextListener, eu.etaxonomy.cdm.api.conversation.IConversationEnabled, IDirtyMarkable, IPostOperationEnabled
Constructor and Description |
---|
FeatureTreeEditor() |
Modifier and Type | Method and Description |
---|---|
void |
addOperation(AbstractPostOperation operation) |
void |
changed(java.lang.Object element)
Sets the implementor to the "dirty" state specifying the object that was changed.
|
void |
contextAboutToStop(org.eclipse.ui.IMemento memento,
org.eclipse.core.runtime.IProgressMonitor monitor)
contextAboutToStop
|
void |
contextRefresh(org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
contextStart(org.eclipse.ui.IMemento memento,
org.eclipse.core.runtime.IProgressMonitor monitor)
contextStart
|
void |
contextStop(org.eclipse.ui.IMemento memento,
org.eclipse.core.runtime.IProgressMonitor monitor)
contextStop
|
void |
createControl(org.eclipse.swt.widgets.Composite parent,
org.eclipse.e4.ui.services.EMenuService menuService) |
void |
dispose() |
void |
focus() |
void |
forceDirty()
Forces the implementing class to be set to the "dirty" state.
|
ICdmEntitySession |
getCdmEntitySession() |
eu.etaxonomy.cdm.api.conversation.ConversationHolder |
getConversationHolder() |
java.util.Map<java.lang.Object,java.util.List<java.lang.String>> |
getPropertyPathsMap() |
java.util.List<eu.etaxonomy.cdm.model.description.FeatureTree> |
getRootEntities() |
org.eclipse.jface.viewers.IStructuredSelection |
getSelection()
Gets the current selection.
|
org.eclipse.jface.viewers.TreeViewer |
getViewer() |
boolean |
isDirty() |
boolean |
onComplete()
This method will get called after the execution took place and occasional
cleanups were performed.
|
boolean |
postOperation(eu.etaxonomy.cdm.model.common.CdmBase objectAffectedByOperation)
This method will be called after executing an operation.
|
void |
refresh()
Refresh the parts viewer
|
void |
save(org.eclipse.core.runtime.IProgressMonitor monitor)
Save this part
|
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event) |
void |
setDirty(boolean isDirty) |
void |
update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap arg0) |
void |
workbenchShutdown(org.eclipse.ui.IMemento memento,
org.eclipse.core.runtime.IProgressMonitor monitor)
workbenchShutdown
|
@PostConstruct public void createControl(org.eclipse.swt.widgets.Composite parent, org.eclipse.e4.ui.services.EMenuService menuService)
public void setDirty(boolean isDirty)
public boolean isDirty()
public void addOperation(AbstractPostOperation operation)
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged
in interface org.eclipse.jface.viewers.ISelectionChangedListener
@Focus public void focus()
public void refresh()
IE4ViewerPart
refresh
in interface IE4ViewerPart
public org.eclipse.jface.viewers.TreeViewer getViewer()
public org.eclipse.jface.viewers.IStructuredSelection getSelection()
getSelection
in interface IE4ViewerPart
public eu.etaxonomy.cdm.api.conversation.ConversationHolder getConversationHolder()
getConversationHolder
in interface eu.etaxonomy.cdm.api.conversation.IConversationEnabled
@Persist public void save(org.eclipse.core.runtime.IProgressMonitor monitor)
IE4SavablePart
save
in interface IE4SavablePart
monitor
- the progress monitor for long running save actions@PreDestroy public void dispose()
public ICdmEntitySession getCdmEntitySession()
getCdmEntitySession
in interface ICdmEntitySessionEnabled
public java.util.Map<java.lang.Object,java.util.List<java.lang.String>> getPropertyPathsMap()
getPropertyPathsMap
in interface ICdmEntitySessionEnabled
public java.util.List<eu.etaxonomy.cdm.model.description.FeatureTree> getRootEntities()
getRootEntities
in interface ICdmEntitySessionEnabled
public void contextAboutToStop(org.eclipse.ui.IMemento memento, org.eclipse.core.runtime.IProgressMonitor monitor)
IContextListener
contextAboutToStop
contextAboutToStop
in interface IContextListener
memento
- a IMemento
object.monitor
- a IProgressMonitor
object.public void contextStop(org.eclipse.ui.IMemento memento, org.eclipse.core.runtime.IProgressMonitor monitor)
IContextListener
contextStop
contextStop
in interface IContextListener
memento
- a IMemento
object.monitor
- a IProgressMonitor
object.public void contextStart(org.eclipse.ui.IMemento memento, org.eclipse.core.runtime.IProgressMonitor monitor)
IContextListener
contextStart
contextStart
in interface IContextListener
memento
- a IMemento
object.monitor
- a IProgressMonitor
object.public void contextRefresh(org.eclipse.core.runtime.IProgressMonitor monitor)
contextRefresh
in interface IContextListener
public void workbenchShutdown(org.eclipse.ui.IMemento memento, org.eclipse.core.runtime.IProgressMonitor monitor)
IContextListener
workbenchShutdown
workbenchShutdown
in interface IContextListener
memento
- a IMemento
object.monitor
- a IProgressMonitor
object.public void update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap arg0)
update
in interface eu.etaxonomy.cdm.persistence.hibernate.ICdmPostDataChangeObserver
public void changed(java.lang.Object element)
IDirtyMarkable
changed
in interface IDirtyMarkable
element
- the element that was changed causing the "dirty" state.public void forceDirty()
IDirtyMarkable
forceDirty
in interface IDirtyMarkable
public boolean postOperation(eu.etaxonomy.cdm.model.common.CdmBase objectAffectedByOperation)
This method will be called after executing an operation. If operation
created a new object and the IPostOperationEnabled
has to know
about the object it should be passed to the IPostOperationEnabled
postOperation
in interface IPostOperationEnabled
objectAffectedByOperation
- a newly created object for example. May be null
Status.CANCEL_STATUS
which
might not be what you want.public boolean onComplete()
onComplete
in interface IPostOperationEnabled
Copyright © 2007-2018. All Rights Reserved.