* 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.navigation;
import java.util.Collection;
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
/**
- *
* @author n.hoffmann
* @created 24.03.2009
- * @version 1.0
*/
public class NavigationUtil extends AbstractUtility{
e.getMessage(), TaxeditorStorePlugin.PLUGIN_ID,
e,
true);
-
}
}
- /**
- * <p>openEmpty</p>
- *
- * @param parentNodeUuid a {@link java.util.UUID} object.
- */
public static void openEmpty(UUID parentNodeUuid) {
EditorUtil.openEmptyE4(parentNodeUuid);
}
- /**
- * <p>getUndoContext</p>
- *
- * @return a {@link org.eclipse.core.commands.operations.IUndoContext} object.
- */
public static IUndoContext getUndoContext() {
// FIXME this has to be more specific. Every widget has to have its own undo context
// return IOperationHistory.GLOBAL_UNDO_CONTEXT;
return false;
}
- /**
- * <p>openSearch</p>
- *
- * @param selection a {@link java.lang.Object} object.
- */
public static void openSearch(Object selection) {
if(selection instanceof Taxon){
Taxon taxon = (Taxon) selection;
// }
}
- /**
- * <p>getPluginId</p>
- *
- * @return a {@link java.lang.String} object.
- */
public static String getPluginId(){
return TaxeditorNavigationPlugin.PLUGIN_ID;
}
-
-}
+}
\ No newline at end of file
if (!checkNoneChecked()) {
Object[] checkedElements = aPage.getViewer().getCheckedElements();
Object[] grayedElements = aPage.getViewer().getGrayedElements();
- ArrayList checkedList = new ArrayList(Arrays.asList(checkedElements));
- ArrayList grayedList = new ArrayList(Arrays.asList(grayedElements));
+ ArrayList<Object> checkedList = new ArrayList<>(Arrays.asList(checkedElements));
+ ArrayList<Object> grayedList = new ArrayList<>(Arrays.asList(grayedElements));
checkedList = (ArrayList) CollectionUtils.subtract(checkedList, grayedList);
- ArrayList<UUID> listUIIDChecked = new ArrayList<UUID>();
- ArrayList<UUID> listUIIDGrayed = new ArrayList<UUID>();
+ ArrayList<UUID> listUIIDChecked = new ArrayList<>();
+ ArrayList<UUID> listUIIDGrayed = new ArrayList<>();
for (Object o : checkedList) {
if (o instanceof TermDto) {
listUIIDChecked.add(((TermDto) o).getUuid());