1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00

Fix for bug 468408

- Change to use the launcher plugin instead of the internal
  Activator from org.eclipse.linuxtools.docker.ui

Change-Id: I55c5ee8a70714a76543b6deb029003c9d8a7862c
This commit is contained in:
Jeff Johnston 2015-05-26 17:16:50 -04:00
parent c0233ff852
commit e51f7256e5

View file

@ -13,15 +13,16 @@ package org.eclipse.cdt.internal.docker.launcher;
import java.net.MalformedURLException;
import java.net.URL;
import org.eclipse.cdt.docker.launcher.DockerLaunchUIPlugin;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.linuxtools.docker.ui.Activator;
import org.eclipse.swt.graphics.Image;
public class SWTImagesFactory {
// The plug-in registry
private static ImageRegistry imageRegistry = Activator.getDefault()
private static ImageRegistry imageRegistry = DockerLaunchUIPlugin
.getDefault()
.getImageRegistry();
// Sub-directory (under the package containing this class) where 16 color
@ -30,13 +31,16 @@ public class SWTImagesFactory {
static {
try {
fgIconBaseURL = new URL(Activator.getDefault().getBundle()
fgIconBaseURL = new URL(
DockerLaunchUIPlugin.getDefault().getBundle()
.getEntry("/"), "icons/"); //$NON-NLS-1$ //$NON-NLS-2$
} catch (MalformedURLException e) {
Activator.log(e);
DockerLaunchUIPlugin.log(e);
}
}
private static final String NAME_PREFIX = Activator.PLUGIN_ID + '.';
private static final String NAME_PREFIX = DockerLaunchUIPlugin.PLUGIN_ID
+ '.';
private static final int NAME_PREFIX_LENGTH = NAME_PREFIX.length();
public static final String IMG_DOCKER_SMALL = NAME_PREFIX
+ "docker_small.gif"; //$NON-NLS-1$
@ -69,7 +73,7 @@ public class SWTImagesFactory {
try {
return new URL(fgIconBaseURL, buffer.toString());
} catch (MalformedURLException e) {
Activator.log(e);
DockerLaunchUIPlugin.log(e);
return null;
}
}