public class TaxonNameEditorE4 extends java.lang.Object implements eu.etaxonomy.cdm.api.conversation.IConversationEnabled, IDirtyMarkable, IPartContentHasDetails, IPartContentHasSupplementalData, IPartContentHasMedia, IPartContentHasFactualData, IPartChangeListener, org.eclipse.ui.ISelectionListener, ISecuredEditor, IPostOperationEnabled, IE4SavablePart, ITaxonEditor, IDropTargetableE4
Constructor and Description |
---|
TaxonNameEditorE4() |
Modifier and Type | Method and Description |
---|---|
void |
addHeterotypicSynonymGroup(HomotypicalSynonymGroupE4 group) |
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.
|
boolean |
checkForEmptyNames()
checkForEmptyNames
|
protected void |
createManagedForm(org.eclipse.swt.widgets.Composite composite) |
void |
createOrUpdateNameComposites(boolean accepted,
boolean heterotypicGroups,
boolean misappliedNames) |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent,
org.eclipse.e4.ui.model.application.ui.basic.MPart thisPart) |
void |
dispose() |
void |
dragEntered() |
void |
dragLeft() |
void |
forceDirty()
Forces the implementing class to be set to the "dirty" state.
|
AcceptedGroupE4 |
getAcceptedGroup() |
AcceptedNameContainerE4 |
getAcceptedNameContainer() |
java.util.List<AbstractGroupE4> |
getAllGroups() |
AbstractGroupedContainerE4 |
getContainer(eu.etaxonomy.cdm.model.taxon.TaxonBase taxonBase) |
org.eclipse.e4.core.contexts.IEclipseContext |
getContext() |
org.eclipse.swt.widgets.Composite |
getControl() |
eu.etaxonomy.cdm.api.conversation.ConversationHolder |
getConversationHolder() |
java.util.Set<AbstractGroupedContainerE4> |
getDirtyNames()
getDirtyNames
|
TaxonNameEditorE4 |
getEditor() |
TaxonEditorInputE4 |
getEditorInput() |
java.util.Set<AbstractGroupedContainerE4> |
getEmptyContainers() |
java.util.List<AbstractGroupedContainerE4> |
getGroupedContainers() |
java.util.List<HomotypicalSynonymGroupE4> |
getHeterotypicSynonymGroups() |
HomotypicalSynonymGroupE4 |
getHomotypicalGroupContainer(eu.etaxonomy.cdm.model.name.HomotypicalGroup homotypicalGroup) |
org.eclipse.ui.forms.ManagedForm |
getManagedForm() |
org.eclipse.e4.ui.services.EMenuService |
getMenuService() |
MisappliedGroupE4 |
getMisappliedGroup() |
AbstractGroupedContainerE4 |
getSelectedContainer() |
org.eclipse.e4.ui.workbench.modeling.ESelectionService |
getSelectionService() |
eu.etaxonomy.cdm.model.taxon.Taxon |
getTaxon() |
org.eclipse.ui.forms.widgets.FormToolkit |
getToolkit() |
org.eclipse.core.commands.operations.IUndoContext |
getUndoContext() |
void |
init(TaxonEditorInputE4 input) |
boolean |
isActive() |
boolean |
isDirty() |
boolean |
onComplete()
This method will get called after the execution took place and occasional
cleanups were performed.
|
void |
partChanged(java.lang.Integer eventType,
org.eclipse.ui.IWorkbenchPartReference partRef)
partChanged
|
boolean |
permissionsSatisfied() |
boolean |
postOperation(eu.etaxonomy.cdm.model.common.CdmBase objectAffectedByOperation)
This method will be called after executing an operation.
|
boolean |
redraw()
Redraws this editor return true on success
|
boolean |
redraw(boolean focus,
boolean accepted,
boolean heterotypic,
boolean misappliedNames)
Redraws the editor controls
|
void |
removeGroup(AbstractGroupE4 group) |
void |
save(org.eclipse.core.runtime.IProgressMonitor monitor)
Save this part
|
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection) |
void |
setAcceptedGroup(AcceptedGroupE4 acceptedGroup) |
void |
setDirty() |
void |
setDisabled() |
protected void |
setEnabled(boolean enabled,
org.eclipse.swt.graphics.Color background) |
void |
setFocus() |
void |
setMisapplicationsGroup(MisappliedGroupE4 misappliedGroup) |
void |
setOnError() |
void |
setPartName() |
void |
update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap events) |
@PostConstruct public void createPartControl(org.eclipse.swt.widgets.Composite parent, org.eclipse.e4.ui.model.application.ui.basic.MPart thisPart)
protected void createManagedForm(org.eclipse.swt.widgets.Composite composite)
public void createOrUpdateNameComposites(boolean accepted, boolean heterotypicGroups, boolean misappliedNames)
public eu.etaxonomy.cdm.model.taxon.Taxon getTaxon()
getTaxon
in interface ITaxonEditor
public void setDirty()
@Focus public void setFocus()
public boolean permissionsSatisfied()
permissionsSatisfied
in interface ISecuredEditor
User
) has sufficient
privileges to edit the Taxon
or TaxonNode
public eu.etaxonomy.cdm.api.conversation.ConversationHolder getConversationHolder()
getConversationHolder
in interface eu.etaxonomy.cdm.api.conversation.IConversationEnabled
public void update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap events)
update
in interface eu.etaxonomy.cdm.persistence.hibernate.ICdmPostDataChangeObserver
public boolean redraw()
public boolean redraw(boolean focus, boolean accepted, boolean heterotypic, boolean misappliedNames)
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 org.eclipse.ui.forms.ManagedForm getManagedForm()
public boolean checkForEmptyNames()
checkForEmptyNames
public java.util.Set<AbstractGroupedContainerE4> getEmptyContainers()
@Persist public void save(org.eclipse.core.runtime.IProgressMonitor monitor)
save
in interface IE4SavablePart
monitor
- the progress monitor for long running save actionspublic void init(TaxonEditorInputE4 input)
public AcceptedNameContainerE4 getAcceptedNameContainer()
public HomotypicalSynonymGroupE4 getHomotypicalGroupContainer(eu.etaxonomy.cdm.model.name.HomotypicalGroup homotypicalGroup)
public java.util.Set<AbstractGroupedContainerE4> getDirtyNames()
getDirtyNames
public java.util.List<AbstractGroupedContainerE4> getGroupedContainers()
public java.util.List<AbstractGroupE4> getAllGroups()
public org.eclipse.e4.core.contexts.IEclipseContext getContext()
getContext
in interface IDropTargetableE4
public boolean isDirty()
@PreDestroy public void dispose()
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.ISelectionListener
public AbstractGroupedContainerE4 getSelectedContainer()
public void dragEntered()
dragEntered
in interface IDropTargetableE4
public void dragLeft()
dragLeft
in interface IDropTargetableE4
public void setMisapplicationsGroup(MisappliedGroupE4 misappliedGroup)
public org.eclipse.ui.forms.widgets.FormToolkit getToolkit()
public java.util.List<HomotypicalSynonymGroupE4> getHeterotypicSynonymGroups()
public void addHeterotypicSynonymGroup(HomotypicalSynonymGroupE4 group)
public AcceptedGroupE4 getAcceptedGroup()
public void setAcceptedGroup(AcceptedGroupE4 acceptedGroup)
public MisappliedGroupE4 getMisappliedGroup()
public boolean isActive()
public boolean onComplete()
IPostOperationEnabled
onComplete
in interface IPostOperationEnabled
public void partChanged(java.lang.Integer eventType, org.eclipse.ui.IWorkbenchPartReference partRef)
partChanged
partChanged
in interface IPartChangeListener
eventType
- a Integer
object.partRef
- a IWorkbenchPartReference
object.public void removeGroup(AbstractGroupE4 group)
public AbstractGroupedContainerE4 getContainer(eu.etaxonomy.cdm.model.taxon.TaxonBase taxonBase)
public void setOnError()
public void setDisabled()
protected void setEnabled(boolean enabled, org.eclipse.swt.graphics.Color background)
public void changed(java.lang.Object element)
IDirtyMarkable
changed
in interface IDirtyMarkable
element
- the element that was changed causing the "dirty" state.public void setPartName()
public void forceDirty()
IDirtyMarkable
forceDirty
in interface IDirtyMarkable
public org.eclipse.core.commands.operations.IUndoContext getUndoContext()
public org.eclipse.swt.widgets.Composite getControl()
getControl
in interface IDropTargetableE4
public org.eclipse.e4.ui.services.EMenuService getMenuService()
public org.eclipse.e4.ui.workbench.modeling.ESelectionService getSelectionService()
public boolean canAttachMedia()
true
if media can be attached to the editor input and
false
otherwisecanAttachMedia
in interface IPartContentHasMedia
public TaxonEditorInputE4 getEditorInput()
public TaxonNameEditorE4 getEditor()
getEditor
in interface IDropTargetableE4
Copyright © 2007-2018. All Rights Reserved.