Project

General

Profile

« Previous | Next » 

Revision 40a41f9f

Added by Andreas Müller almost 4 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/StoreUtil.java
9 9

  
10 10
package eu.etaxonomy.taxeditor.store;
11 11

  
12
import java.util.UUID;
13

  
14 12
import org.eclipse.core.commands.operations.IOperationHistory;
15 13
import org.eclipse.core.commands.operations.IUndoContext;
16 14
import org.eclipse.core.runtime.NullProgressMonitor;
......
43 41
 *
44 42
 * @author n.hoffmann
45 43
 * @created 11.05.2009
46
 * @version 1.0
47 44
 */
48 45
public class StoreUtil extends AbstractUtility {
49 46

  
50
	/**
51
	 * <p>checktaxonExists</p>
52
	 *
53
	 * @param fromString a {@link java.util.UUID} object.
54
	 */
55
	public static void checktaxonExists(UUID fromString) {
56
//        if (CdmStore.getTaxonService().getTaxonByUuid(UUID.fromString(uuid)) == null) {
57
//        	logger.warn("Couldn't find taxon with UUID " + uuid);
58
//        	return null;
59
//        }
60
	}
61

  
62 47
	/**
63 48
	 * If the object given is already a {@link CdmBase} then it is returned.<br>
64 49
	 * If it is a kind of "container" for CDM objects then it is asked for its "responsible" CdmBase entity.<br>
......
83 68
        throw new IllegalArgumentException("Object " + object.toString() + " is neither a CdmBase nor a CDM \"container\"");
84 69
	}
85 70

  
86
	/**
87
	 * <p>getOperationHistory</p>
88
	 *
89
	 * @return a {@link org.eclipse.core.commands.operations.IOperationHistory} object.
90
	 */
91 71
	public static IOperationHistory getOperationHistory() {
92 72
		return TaxeditorStorePlugin.getDefault().getWorkbench().
93 73
					getOperationSupport().getOperationHistory();
94 74
	}
95 75

  
96
	/**
97
	 * <p>setStatusLineManager</p>
98
	 *
99
	 * @param manager a {@link org.eclipse.jface.action.IStatusLineManager} object.
100
	 */
101 76
	public static void setStatusLineManager(IStatusLineManager manager) {
102 77
		statusLineManager = manager;
103 78
	}
......
115 90
        }
116 91
    }
117 92

  
118

  
119
	/**
120
	 * <p>getUndoContext</p>
121
	 *
122
	 * @return a {@link org.eclipse.core.commands.operations.IUndoContext} object.
123
	 */
124 93
	public static IUndoContext getUndoContext(){
125 94
		return IOperationHistory.GLOBAL_UNDO_CONTEXT;
126 95
	}
127 96

  
128
	/**
129
	 * <p>getPluginId</p>
130
	 *
131
	 * @return a {@link java.lang.String} object.
132
	 */
133 97
	public static String getPluginId(){
134 98
		return TaxeditorStorePlugin.PLUGIN_ID;
135 99
	}
......
240 204
        return style;
241 205
    }
242 206

  
243
    public static String getPath(TermNode node){
207
    public static String getPath(TermNode<?> node){
244 208
        String path = node.getTerm().getLabel();
245
        TermNode parent = node.getParent();
209
        TermNode<?> parent = node.getParent();
246 210
        while(parent != null && parent.getTerm()!=null){
247 211
            path = parent.getTerm().getLabel() + "/" + path;
248 212
            parent = parent.getParent();

Also available in: Unified diff