diff options
author | Markus Keller | 2012-10-10 13:14:53 +0000 |
---|---|---|
committer | Markus Keller | 2012-10-10 13:14:53 +0000 |
commit | a68f972007c011994af90bf8a7a9f1b81616f306 (patch) | |
tree | f90e7daa1dddfc190c94a695662ff93f0b86d263 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java | |
parent | 93b068c839132926a06535deffa61e49f1756b50 (diff) | |
download | eclipse.platform.debug-a68f972007c011994af90bf8a7a9f1b81616f306.tar.gz eclipse.platform.debug-a68f972007c011994af90bf8a7a9f1b81616f306.tar.xz eclipse.platform.debug-a68f972007c011994af90bf8a7a9f1b81616f306.zip |
Bug 387504 - Bugs in program argument parsing (compared to command line)
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java index 4e42fc0b6..6dfe43554 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java @@ -24,8 +24,9 @@ import org.eclipse.debug.internal.ui.IDebugHelpContextIds; import org.eclipse.debug.internal.ui.SWTFactory; import org.eclipse.jface.resource.JFaceResources; import org.eclipse.swt.SWT; -import org.eclipse.swt.events.SegmentEvent; -import org.eclipse.swt.events.SegmentListener; +import org.eclipse.swt.custom.BidiSegmentEvent; +import org.eclipse.swt.custom.BidiSegmentListener; +import org.eclipse.swt.custom.StyledText; import org.eclipse.swt.graphics.Font; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; @@ -83,14 +84,14 @@ public class ProcessPropertyPage extends PropertyPage { //create command line section SWTFactory.createLabel(parent, DebugPreferencesMessages.ProcessPropertyPage_Command_Line__1, fHeadingFont, 1); - text = SWTFactory.createText(parent, + StyledText styledText = SWTFactory.createStyledText(parent, SWT.WRAP | SWT.READ_ONLY | SWT.BORDER | SWT.V_SCROLL, 1, convertWidthInCharsToPixels(13), convertHeightInCharsToPixels(10), GridData.FILL_BOTH); - text.setBackground(parent.getBackground()); - ((GridData)text.getLayoutData()).horizontalIndent = 10; + styledText.setBackground(parent.getBackground()); + ((GridData)styledText.getLayoutData()).horizontalIndent = 10; String commandLineText = getCommandLineText(proc); if (commandLineText != null) { String[] arguments = DebugPlugin.parseArguments(commandLineText); @@ -103,14 +104,14 @@ public class ProcessPropertyPage extends PropertyPage { commandLineText = DebugPlugin.renderArguments(arguments, segments); - text.addSegmentListener(new SegmentListener() { - public void getSegments(SegmentEvent event) { + styledText.addBidiSegmentListener(new BidiSegmentListener() { + public void lineGetSegments(BidiSegmentEvent event) { event.segments = segments; event.segmentsChars = chars; } }); } - text.setText(commandLineText); + styledText.setText(commandLineText); } //create environment section |