Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2004-02-18 15:14:05 -0500
committerAlain Magloire2004-02-18 15:14:05 -0500
commit9bf8316c22bd193ad12ab9d31caf8b2f7e84662a (patch)
treeca5d2941a9808b6ca0ee6995f476b313424e1729
parent75e82f67626c17ba5814c2c6a59cb18a34aa7de0 (diff)
downloadorg.eclipse.cdt-9bf8316c22bd193ad12ab9d31caf8b2f7e84662a.tar.gz
org.eclipse.cdt-9bf8316c22bd193ad12ab9d31caf8b2f7e84662a.tar.xz
org.eclipse.cdt-9bf8316c22bd193ad12ab9d31caf8b2f7e84662a.zip
Added image icon when attaching.
-rw-r--r--launch/org.eclipse.cdt.launch/ChangeLog8
-rw-r--r--launch/org.eclipse.cdt.launch/icons/obj16/exec_obj.gifbin0 -> 125 bytes
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java14
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchImages.java6
4 files changed, 27 insertions, 1 deletions
diff --git a/launch/org.eclipse.cdt.launch/ChangeLog b/launch/org.eclipse.cdt.launch/ChangeLog
index 99467182d1..281d97d707 100644
--- a/launch/org.eclipse.cdt.launch/ChangeLog
+++ b/launch/org.eclipse.cdt.launch/ChangeLog
@@ -1,3 +1,11 @@
+2004-02-18 Alain Magloire
+
+ Added image to the label provider
+
+ * icons/obj16/exec_obj.gif
+ * src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
+ * src/org/eclipse/cdt/launch/internal/ui/LaunchImages.java
+
2004-02-17 Alain Magloire
Use a TwoPanel dialog when we attach more user friendly.
diff --git a/launch/org.eclipse.cdt.launch/icons/obj16/exec_obj.gif b/launch/org.eclipse.cdt.launch/icons/obj16/exec_obj.gif
new file mode 100644
index 0000000000..8174dade2b
--- /dev/null
+++ b/launch/org.eclipse.cdt.launch/icons/obj16/exec_obj.gif
Binary files differ
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
index f42d31ed76..55f76e6920 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
@@ -23,6 +23,7 @@ import org.eclipse.cdt.debug.core.cdi.ICDIRuntimeOptions;
import org.eclipse.cdt.debug.core.cdi.ICDISession;
import org.eclipse.cdt.debug.core.cdi.model.ICDITarget;
import org.eclipse.cdt.launch.AbstractCLaunchDelegate;
+import org.eclipse.cdt.launch.internal.ui.LaunchImages;
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
import org.eclipse.cdt.utils.spawner.ProcessFactory;
import org.eclipse.core.resources.IFile;
@@ -42,6 +43,7 @@ import org.eclipse.debug.core.model.IProcess;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.ElementListSelectionDialog;
@@ -164,12 +166,24 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
IPath path = new Path(info.getName());
return path.lastSegment() + " - " + info.getPid();
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object)
+ */
+ public Image getImage(Object element) {
+ return LaunchImages.get(LaunchImages.IMG_OBJS_EXEC);
+ }
};
ILabelProvider qprovider = new LabelProvider() {
public String getText(Object element) {
IProcessInfo info = (IProcessInfo) element;
return info.getName();
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object)
+ */
+ public Image getImage(Object element) {
+ return LaunchImages.get(LaunchImages.IMG_OBJS_EXEC);
+ }
};
TwoPaneElementSelector dialog = new TwoPaneElementSelector(shell, provider, qprovider);
dialog.setTitle("Select Process");
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchImages.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchImages.java
index 928cd34c8b..e23c11d3d2 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchImages.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchImages.java
@@ -30,6 +30,7 @@ public class LaunchImages {
}
private static final String T_TABS = "tabs/";
+ private static final String T_OBJS = "obj16/";
public static String IMG_VIEW_MAIN_TAB = NAME_PREFIX + "main_tab.gif";
public static String IMG_VIEW_ARGUMENTS_TAB = NAME_PREFIX + "arguments_tab.gif";
@@ -42,7 +43,10 @@ public class LaunchImages {
public static final ImageDescriptor DESC_TAB_ENVIRONMENT = createManaged(T_TABS, IMG_VIEW_ENVIRONMENT_TAB);
public static final ImageDescriptor DESC_TAB_DEBUGGER = createManaged(T_TABS, IMG_VIEW_DEBUGGER_TAB);
public static final ImageDescriptor DESC_TAB_SOURCE = createManaged(T_TABS, IMG_VIEW_SOURCE_TAB);
-
+
+ public static String IMG_OBJS_EXEC= NAME_PREFIX + "exec_obj.gif";
+ public static final ImageDescriptor DESC_OBJS_EXEC = createManaged(T_OBJS, IMG_OBJS_EXEC);
+
public static void initialize() {
}

Back to the top