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

2005-07-14 Mikhail Khodjaiants

Fix PR 103207: New Icon for the TwoPaneElement in the binary search
	* src/org/eclipse/cdt/launch/ui/CMainTab.java
This commit is contained in:
Alain Magloire 2005-07-14 17:29:48 +00:00
parent 519a3f133b
commit 9951df73a1
2 changed files with 7 additions and 8 deletions

View file

@ -1,3 +1,7 @@
2005-07-14 Mikhail Khodjaiants
Fix PR 103207: New Icon for the TwoPaneElement in the binary search
* src/org/eclipse/cdt/launch/ui/CMainTab.java
2005-07-12 Mikhail Khodjaiants
Bug 103522: Launcher: Stop at main checkbox is covered with default launch dialog size.
Moved the "Stop in main" and "Advanced" buttons on the line below.

View file

@ -24,14 +24,11 @@ import org.eclipse.cdt.core.model.IBinary;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.ICProject;
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
import org.eclipse.cdt.internal.ui.CPluginImages;
import org.eclipse.cdt.internal.ui.viewsupport.CElementImageProvider;
import org.eclipse.cdt.launch.internal.ui.LaunchImages;
import org.eclipse.cdt.launch.internal.ui.LaunchMessages;
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
import org.eclipse.cdt.ui.CElementImageDescriptor;
import org.eclipse.cdt.ui.CElementLabelProvider;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.utils.pty.PTY;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
@ -40,6 +37,8 @@ import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.ui.DebugUITools;
import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.window.Window;
@ -50,7 +49,6 @@ import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
@ -321,10 +319,7 @@ public class CMainTab extends CLaunchConfigurationTab {
if (celement.getElementType() == ICElement.C_BINARY) {
IBinary belement = (IBinary)celement;
if (belement.isExecutable()) {
Image image = super.getImage(element);
Point size = new Point(image.getBounds().width, image.getBounds().height);
return CUIPlugin.getImageDescriptorRegistry().get(
new CElementImageDescriptor(CPluginImages.DESC_OBJS_CEXEC, 0, size));
return DebugUITools.getImage(IDebugUIConstants.IMG_ACT_RUN);
}
}