import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Tree;
+import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IMemento;
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
@Override
public void changed(Object element) {
setDirty(true);
-// firePropertyChange(IEditorPart.PROP_DIRTY);
+ //firePropertyChange(IEditorPart.PROP_DIRTY);
viewer.update(new TreeNode(element), null);
}
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Tree;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.ISaveablePart;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.internal.E4PartWrapper;
import eu.etaxonomy.taxeditor.editor.l10n.Messages;
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart;
import eu.etaxonomy.taxeditor.model.AbstractUtility;
+import eu.etaxonomy.taxeditor.model.IDirtyMarkable;
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
import eu.etaxonomy.taxeditor.model.IPartContentHasMedia;
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
if(part==this){
return;
}
- if(AbstractUtility.getActiveE4Editor() == null){
- showEmptyPage();
- return;
- }
+// if(AbstractUtility.getActiveE4Editor() == null){
+// showEmptyPage();
+// return;
+// }
if (part instanceof DetailsViewPart || part instanceof SupplementalDataViewPart
((BulkEditor) part).changed(selection.getFirstElement());
}
+ if (part instanceof E4PartWrapper){
+ part = AbstractUtility.getE4WrappedPart(part);
+ if (part instanceof IDirtyMarkable){
+ StructuredSelection selection = new StructuredSelection(object);
+ ((IDirtyMarkable)part).changed(selection.getFirstElement());
+ }
+ }
+
+
super.changed(object);
}