Project

General

Profile

« Previous | Next » 

Revision 23a13680

Added by Andreas Müller over 2 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/NavigationUtil.java
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
9

  
10 9
package eu.etaxonomy.taxeditor.navigation;
11 10

  
12 11
import java.util.Collection;
......
48 47
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
49 48

  
50 49
/**
51
 *
52 50
 * @author n.hoffmann
53 51
 * @created 24.03.2009
54
 * @version 1.0
55 52
 */
56 53
public class NavigationUtil extends AbstractUtility{
57 54

  
......
122 119
		            e.getMessage(), TaxeditorStorePlugin.PLUGIN_ID,
123 120
		            e,
124 121
		            true);
125

  
126 122
		}
127 123
	}
128 124

  
129
	/**
130
	 * <p>openEmpty</p>
131
	 *
132
	 * @param parentNodeUuid a {@link java.util.UUID} object.
133
	 */
134 125
	public static void openEmpty(UUID parentNodeUuid) {
135 126
	    EditorUtil.openEmptyE4(parentNodeUuid);
136 127
	}
137 128

  
138
	/**
139
	 * <p>getUndoContext</p>
140
	 *
141
	 * @return a {@link org.eclipse.core.commands.operations.IUndoContext} object.
142
	 */
143 129
	public static IUndoContext getUndoContext() {
144 130
		// FIXME this has to be more specific. Every widget has to have its own undo context
145 131
//		return IOperationHistory.GLOBAL_UNDO_CONTEXT;
......
193 179
        return false;
194 180
    }
195 181

  
196
	/**
197
	 * <p>openSearch</p>
198
	 *
199
	 * @param selection a {@link java.lang.Object} object.
200
	 */
201 182
	public static void openSearch(Object selection) {
202 183
		if(selection instanceof Taxon){
203 184
			Taxon taxon = (Taxon) selection;
......
250 231
//		}
251 232
	}
252 233

  
253
	/**
254
	 * <p>getPluginId</p>
255
	 *
256
	 * @return a {@link java.lang.String} object.
257
	 */
258 234
	public static String getPluginId(){
259 235
		return TaxeditorNavigationPlugin.PLUGIN_ID;
260 236
	}
261

  
262
}
237
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/wizard/AvailableDistributionWizard.java
44 44
        if (!checkNoneChecked()) {
45 45
            Object[] checkedElements = aPage.getViewer().getCheckedElements();
46 46
            Object[] grayedElements = aPage.getViewer().getGrayedElements();
47
            ArrayList checkedList = new ArrayList(Arrays.asList(checkedElements));
48
            ArrayList grayedList = new ArrayList(Arrays.asList(grayedElements));
47
            ArrayList<Object> checkedList = new ArrayList<>(Arrays.asList(checkedElements));
48
            ArrayList<Object> grayedList = new ArrayList<>(Arrays.asList(grayedElements));
49 49
            checkedList = (ArrayList) CollectionUtils.subtract(checkedList, grayedList);
50
            ArrayList<UUID> listUIIDChecked = new ArrayList<UUID>();
51
            ArrayList<UUID> listUIIDGrayed = new ArrayList<UUID>();
50
            ArrayList<UUID> listUIIDChecked = new ArrayList<>();
51
            ArrayList<UUID> listUIIDGrayed = new ArrayList<>();
52 52
            for (Object o : checkedList) {
53 53
                if (o instanceof TermDto) {
54 54
                    listUIIDChecked.add(((TermDto) o).getUuid());

Also available in: Unified diff