1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Bug 515249: Corrected icon display

Change-Id: I2e3ad02421da963ec8c75e4c6071d70c06e9a4ef
Signed-off-by: Pierre Sachot <sachot.pierre@laposte.net>
This commit is contained in:
Pierre Sachot 2017-04-19 13:14:24 +01:00
parent df26b628b7
commit 6146025ab7

View file

@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.cdt.ui.newui;
import org.eclipse.jface.window.Window;
//import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
@ -64,6 +65,7 @@ public abstract class AbstractPropertyDialog extends Dialog {
public boolean open () {
shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
shell.setImage(Window.getDefaultImage());
shell.setText(getText());
createDialogArea(shell);
@ -84,7 +86,7 @@ public abstract class AbstractPropertyDialog extends Dialog {
protected static String strip_wsp(String s) {
s = s.trim();
if (s.startsWith(WSP_BEG) && s.endsWith(WSP_END)) {
int x = s.length() - WSP_END.length();
int x = s.length() - WSP_END.length();
s = s.substring(WSP_BEG.length(), x);
}
return s;