public class DerivateView extends java.lang.Object implements IPartContentHasFactualData, eu.etaxonomy.cdm.api.conversation.IConversationEnabled, ICdmEntitySessionEnabled, IDirtyMarkable, IPostOperationEnabled, IPartContentHasDetails, IPartContentHasSupplementalData, IPartContentHasMedia, IContextListener, IE4SavablePart
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
static java.lang.String |
INPUT_ID |
static java.lang.String |
VIEW_HAS_UNSAVED_CHANGES |
static java.lang.String |
YOU_NEED_TO_SAVE_BEFORE_PERFORMING_THIS_ACTION |
Constructor and Description |
---|
DerivateView()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addFieldUnit(eu.etaxonomy.cdm.model.occurrence.FieldUnit fieldUnit) |
boolean |
canAttachMedia()
Return
true if media can be attached to the editor input and
false otherwise |
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 |
createPartControl(org.eclipse.swt.widgets.Composite parent,
org.eclipse.e4.ui.services.EMenuService menuService,
org.eclipse.e4.core.contexts.IEclipseContext context) |
void |
dispose() |
void |
forceDirty()
Forces the implementing class to be set to the "dirty" state.
|
ICdmEntitySession |
getCdmEntitySession() |
eu.etaxonomy.cdm.api.conversation.ConversationHolder |
getConversationHolder() |
DerivateLabelProvider |
getLabelProvider() |
java.util.Set<eu.etaxonomy.cdm.model.molecular.SingleRead> |
getMultiLinkSingleReads() |
java.util.Map<java.lang.Object,java.util.List<java.lang.String>> |
getPropertyPathsMap() |
java.util.List<eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase<?>> |
getRootEntities() |
java.lang.Object |
getSelectionInput() |
org.eclipse.jface.viewers.TreeViewer |
getViewer() |
void |
init(DerivateViewEditorInput editorInput) |
boolean |
isDirty() |
boolean |
isListenToSelectionChange() |
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 |
refreshTree()
Refreshes the derivate hierarchy tree
|
void |
refreshTree(java.lang.Object expandTo)
Refreshes the derivate hierarchy tree and expands the tree
to show and select the given object.
|
void |
remove(java.lang.Object obj) |
void |
save(org.eclipse.core.runtime.IProgressMonitor monitor)
Save this part
|
void |
selectionChanged(org.eclipse.jface.viewers.ISelection selection,
org.eclipse.e4.ui.model.application.ui.basic.MPart activePart,
org.eclipse.e4.ui.model.application.ui.basic.MPart thisPart) |
void |
setDirty(boolean isDirty) |
void |
setFocus() |
void |
toggleListenToSelectionChange(org.eclipse.e4.ui.model.application.ui.basic.MPart part) |
void |
update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap changeEvents) |
void |
updateLabelCache() |
void |
updateRootEntities() |
void |
updateRootEntities(java.util.Collection<java.util.UUID> derivativeUuids) |
void |
updateRootEntities(java.util.List<eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase> derivates) |
void |
workbenchShutdown(org.eclipse.ui.IMemento memento,
org.eclipse.core.runtime.IProgressMonitor monitor)
workbenchShutdown
|
public static final java.lang.String ID
public static final java.lang.String INPUT_ID
public static final java.lang.String YOU_NEED_TO_SAVE_BEFORE_PERFORMING_THIS_ACTION
public static final java.lang.String VIEW_HAS_UNSAVED_CHANGES
public void init(DerivateViewEditorInput editorInput)
@PostConstruct public void createPartControl(org.eclipse.swt.widgets.Composite parent, org.eclipse.e4.ui.services.EMenuService menuService, org.eclipse.e4.core.contexts.IEclipseContext context)
public void updateRootEntities()
public void updateRootEntities(java.util.Collection<java.util.UUID> derivativeUuids)
public void updateRootEntities(java.util.List<eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase> derivates)
public void updateLabelCache()
@Persist public void save(org.eclipse.core.runtime.IProgressMonitor monitor)
IE4SavablePart
save
in interface IE4SavablePart
monitor
- the progress monitor for long running save actionspublic void setDirty(boolean isDirty)
isDirty
- the isDirty to set@Focus public void setFocus()
public void update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap changeEvents)
update
in interface eu.etaxonomy.cdm.persistence.hibernate.ICdmPostDataChangeObserver
public eu.etaxonomy.cdm.api.conversation.ConversationHolder getConversationHolder()
getConversationHolder
in interface eu.etaxonomy.cdm.api.conversation.IConversationEnabled
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 java.util.Map<java.lang.Object,java.util.List<java.lang.String>> getPropertyPathsMap()
getPropertyPathsMap
in interface ICdmEntitySessionEnabled
public void refreshTree(java.lang.Object expandTo)
expandTo
- the object to which the tree should be expandedpublic void refreshTree()
public void remove(java.lang.Object obj)
public java.util.Set<eu.etaxonomy.cdm.model.molecular.SingleRead> getMultiLinkSingleReads()
SingleRead
s that have multiple parentspublic java.lang.Object getSelectionInput()
public DerivateLabelProvider getLabelProvider()
public boolean postOperation(eu.etaxonomy.cdm.model.common.CdmBase objectAffectedByOperation)
IPostOperationEnabled
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()
IPostOperationEnabled
onComplete
in interface IPostOperationEnabled
public boolean canAttachMedia()
IPartContentHasMedia
true
if media can be attached to the editor input and
false
otherwisecanAttachMedia
in interface IPartContentHasMedia
public void addFieldUnit(eu.etaxonomy.cdm.model.occurrence.FieldUnit fieldUnit)
public ICdmEntitySession getCdmEntitySession()
getCdmEntitySession
in interface ICdmEntitySessionEnabled
@PreDestroy public void dispose()
@Inject @Optional public void selectionChanged(@Optional @Named(value="org.eclipse.ui.selection") org.eclipse.jface.viewers.ISelection selection, @Named(value="e4ActivePart") org.eclipse.e4.ui.model.application.ui.basic.MPart activePart, org.eclipse.e4.ui.model.application.ui.basic.MPart thisPart)
public org.eclipse.jface.viewers.TreeViewer getViewer()
public java.util.List<eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase<?>> getRootEntities()
getRootEntities
in interface ICdmEntitySessionEnabled
public void toggleListenToSelectionChange(org.eclipse.e4.ui.model.application.ui.basic.MPart part)
public boolean isListenToSelectionChange()
public void contextAboutToStop(org.eclipse.ui.IMemento memento, org.eclipse.core.runtime.IProgressMonitor monitor)
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)
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)
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)
workbenchShutdown
workbenchShutdown
in interface IContextListener
memento
- a IMemento
object.monitor
- a IProgressMonitor
object.public boolean isDirty()
Copyright © 2007-2018. All Rights Reserved.