Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ColumnLayout.java')
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ColumnLayout.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ColumnLayout.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ColumnLayout.java
index f0d77999ae1..af873b2d172 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ColumnLayout.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ColumnLayout.java
@@ -58,12 +58,17 @@ final class ColumnLayout extends Layout {
private static int COLUMN_TRIM;
static {
String platform= SWT.getPlatform();
- if ("win32".equals(platform)) //$NON-NLS-1$
+ switch (platform) {
+ case "win32": //$NON-NLS-1$
COLUMN_TRIM= 4;
- else if ("carbon".equals(platform)) //$NON-NLS-1$
+ break;
+ case "carbon": //$NON-NLS-1$
COLUMN_TRIM= 24;
- else
+ break;
+ default:
COLUMN_TRIM= 3;
+ break;
+ }
}
private List<ColumnLayoutData> columns= new ArrayList<>();

Back to the top