* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.taxeditor.bulkeditor.e4;
import java.io.File;
import eu.etaxonomy.taxeditor.store.StoreUtil;
/**
- *
* @author pplitzner
* @since Sep 8, 2017
- *
*/
public class BulkEditorE4Composite extends Composite {
@Inject
private IEventBroker eventBroker;
-
+
public BulkEditorE4Composite(BulkEditorE4 bulkEditor, Composite parent, int style) {
super(parent, style);
parent.setLayout(new GridLayout());
bottomComposite.setLayout(new GridLayout());
}
- @SuppressWarnings("unused")
public void init(AbstractBulkEditorInput<?> input){
input.getPropertyKeys().forEach(key->columnList.add(key));
selectionListener.setFullySelectedRowsOnly(false);
bottomComposite.layout();
-
}
private void createTable(){
UiBindingRegistry uiBindingRegistry) {
// add e4 menu to NatTable
new PopupMenuBuilder(natTable, e4Menu)
- .withHideColumnMenuItem()
- .withShowAllColumnsMenuItem()
- .build();
+ .withHideColumnMenuItem()
+ .withShowAllColumnsMenuItem()
+ .build();
// register the UI binding for header, corner and body region
uiBindingRegistry.registerMouseDownBinding(
}
});
-
//enable sorting
natTable.addConfiguration(new SingleClickSortConfiguration());
}
- /** {@inheritDoc}
- * @param selection */
public void performSearch(BulkEditorQuery query, IStructuredSelection selection) {
if (query != null) {
if(StoreUtil.promptCheckIsDirty(bulkEditor)){
File getStatePropertiesFile() {
return bulkEditorSearch.getStatePropertiesFile();
}
-
}
}
Object partObject = createPartObject(activePart);
-
-
+
+
if ((partObject instanceof DetailsPartE4 && !(selection instanceof TaxonName))|| partObject instanceof SupplementalDataPartE4
|| partObject instanceof MediaViewPartE4 || partObject instanceof ConceptViewPartE4 || ((partObject instanceof AbstractCdmEditorPartE4) &&(((AbstractCdmEditorPartE4)partObject).getViewer().getInput() instanceof DescriptionElementBase))) {
((TreeViewer) viewer).setExpandedElements(expandedObjects);
if(object instanceof DescriptionElementBase){
DescriptionElementBase descriptionElement = (DescriptionElementBase) object;
- DescriptionBase description = descriptionElement.getInDescription();
+ DescriptionBase<?> description = descriptionElement.getInDescription();
FeatureNodeContainerTree containerTree = featureNodeContainerCache.get(description);
FeatureNodeContainer featureNodeContainer = containerTree.getFeatureNodeContainerForDescriptionElement(descriptionElement);
if (featureNodeContainer == null){