From: Cherian Mathew Date: Thu, 3 Sep 2015 15:11:32 +0000 (+0200) Subject: Merge branch 'develop' into remoting-4.0 X-Git-Tag: remoting-3.9.0~41 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/d637e4bab9be3f8bb6d7192555593a71e3f3a4e3 Merge branch 'develop' into remoting-4.0 Conflicts: eu.etaxonomy.taxeditor.cdmlib/.classpath eu.etaxonomy.taxeditor.editor/plugin.xml eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/MultiPageTaxonEditor.java eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/handler/DeleteHandler.java eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TreeNodeDropAdapterAssistant.java eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/handler/MoveTaxonHandler.java eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/DeleteOperation.java eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/MoveTaxonOperation.java eu.etaxonomy.taxeditor.store/plugin.xml --- d637e4bab9be3f8bb6d7192555593a71e3f3a4e3 diff --cc eu.etaxonomy.taxeditor.application/.classpath index 4c0364cad,4c7e96f59..0f0d04b90 --- a/eu.etaxonomy.taxeditor.application/.classpath +++ b/eu.etaxonomy.taxeditor.application/.classpath @@@ -3,6 -3,6 +3,7 @@@ - + ++ diff --cc eu.etaxonomy.taxeditor.cdmlib/.classpath index f0537b16b,5f958ce4a..cca90515a --- a/eu.etaxonomy.taxeditor.cdmlib/.classpath +++ b/eu.etaxonomy.taxeditor.cdmlib/.classpath @@@ -1,202 -1,209 +1,201 @@@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - ++ + + + + - ++ + + + diff --cc eu.etaxonomy.taxeditor.editor/META-INF/MANIFEST.MF index 6a720bcca,d4471b24e..a68089a66 --- a/eu.etaxonomy.taxeditor.editor/META-INF/MANIFEST.MF +++ b/eu.etaxonomy.taxeditor.editor/META-INF/MANIFEST.MF @@@ -9,9 -9,9 +9,10 @@@ Bundle-Localization: OSGI-INF/l10n/plug Export-Package: eu.etaxonomy.taxeditor.editor, eu.etaxonomy.taxeditor.editor.handler, eu.etaxonomy.taxeditor.editor.internal, + eu.etaxonomy.taxeditor.editor.key.polytomous, eu.etaxonomy.taxeditor.editor.name, eu.etaxonomy.taxeditor.editor.name.handler, + eu.etaxonomy.taxeditor.editor.name.operation, eu.etaxonomy.taxeditor.editor.view.concept, eu.etaxonomy.taxeditor.editor.view.dataimport, eu.etaxonomy.taxeditor.editor.view.descriptive, diff --cc eu.etaxonomy.taxeditor.editor/plugin.xml index 3dc4659d3,66def4730..d3812b9e3 --- a/eu.etaxonomy.taxeditor.editor/plugin.xml +++ b/eu.etaxonomy.taxeditor.editor/plugin.xml @@@ -1634,12 -1619,24 +1637,30 @@@ + + + + + + + + + + + + + + + + @@@ -1685,7 -1689,7 +1713,7 @@@ -- diff --cc eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java index 64041cfa8,c805c6f16..efa200548 --- a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java +++ b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java @@@ -85,12 -77,8 +85,9 @@@ public class DerivateView extends Edito * Default constructor */ public DerivateView() { + cdmEntitySession = CdmStore.getCurrentSessionManager().newSession(this, true); } - /* (non-Javadoc) - * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite) - */ @Override public void createPartControl(Composite parent) { viewer = new TreeViewer(new Tree(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION)); @@@ -228,12 -192,8 +203,9 @@@ if(!conversation.isBound()){ conversation.bind(); } + cdmEntitySession.bind(); } - /* (non-Javadoc) - * @see eu.etaxonomy.cdm.persistence.hibernate.ICdmPostDataChangeObserver#update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap) - */ @Override public void update(CdmDataChangeMap changeEvents) { } @@@ -347,35 -288,9 +300,39 @@@ return true; } + @Override + public void dispose() { + cdmEntitySession.dispose(); + super.dispose(); + } + + /* (non-Javadoc) + * @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled#getCdmEntitySession() + */ + @Override + public ICdmEntitySession getCdmEntitySession() { + return cdmEntitySession; + } + + /* (non-Javadoc) + * @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled#getRootEntities() + */ + @Override + public List getRootEntities() { + return contentProvider.getRootElements(); + } + + /* (non-Javadoc) + * @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled#getPropertyPathsMap() + */ + @Override + public Map> getPropertyPathsMap() { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean canAttachMedia() { + return true; + } - } diff --cc eu.etaxonomy.taxeditor.store/plugin.xml index 1ccc50cf2,320968a8b..fb44e4eda --- a/eu.etaxonomy.taxeditor.store/plugin.xml +++ b/eu.etaxonomy.taxeditor.store/plugin.xml @@@ -750,11 -697,11 +750,16 @@@ id="eu.etaxonomy.taxeditor.editor.definedTerms.delete" name="%command.name.14"> + + + +