Lines 31-38
Link Here
|
31 |
import org.eclipse.core.resources.IResource; |
31 |
import org.eclipse.core.resources.IResource; |
32 |
import org.eclipse.core.runtime.CoreException; |
32 |
import org.eclipse.core.runtime.CoreException; |
33 |
import org.eclipse.core.runtime.IAdaptable; |
33 |
import org.eclipse.core.runtime.IAdaptable; |
|
|
34 |
import org.eclipse.core.runtime.IPath; |
34 |
import org.eclipse.core.runtime.IStatus; |
35 |
import org.eclipse.core.runtime.IStatus; |
35 |
import org.eclipse.core.runtime.MultiStatus; |
36 |
import org.eclipse.core.runtime.MultiStatus; |
|
|
37 |
import org.eclipse.core.runtime.Path; |
36 |
import org.eclipse.core.runtime.Status; |
38 |
import org.eclipse.core.runtime.Status; |
37 |
|
39 |
|
38 |
import org.eclipse.ui.*; |
40 |
import org.eclipse.ui.*; |
Lines 47-52
Link Here
|
47 |
*/ |
49 |
*/ |
48 |
public class Utilities { |
50 |
public class Utilities { |
49 |
|
51 |
|
|
|
52 |
private static final IPath ICONS_PATH= new Path("$nl$/icons/full/"); //$NON-NLS-1$ |
53 |
|
50 |
public static void registerAction(IKeyBindingService kbs, IAction a, String id) { |
54 |
public static void registerAction(IKeyBindingService kbs, IAction a, String id) { |
51 |
if (kbs != null) { |
55 |
if (kbs != null) { |
52 |
a.setActionDefinitionId(id); |
56 |
a.setActionDefinitionId(id); |
Lines 186-193
Link Here
|
186 |
return bos.toByteArray(); |
190 |
return bos.toByteArray(); |
187 |
} |
191 |
} |
188 |
|
192 |
|
189 |
public static String getIconPath(Display display) { |
193 |
public static IPath getIconPath(Display display) { |
190 |
return "icons/full/"; //$NON-NLS-1$ |
194 |
return ICONS_PATH; |
191 |
} |
195 |
} |
192 |
|
196 |
|
193 |
/* |
197 |
/* |