Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2001, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2001, 2009 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 21-26
Link Here
|
21 |
import org.eclipse.swt.events.ModifyListener; |
21 |
import org.eclipse.swt.events.ModifyListener; |
22 |
import org.eclipse.swt.events.SelectionListener; |
22 |
import org.eclipse.swt.events.SelectionListener; |
23 |
import org.eclipse.swt.layout.GridData; |
23 |
import org.eclipse.swt.layout.GridData; |
|
|
24 |
import org.eclipse.swt.layout.GridLayout; |
24 |
import org.eclipse.swt.widgets.Button; |
25 |
import org.eclipse.swt.widgets.Button; |
25 |
import org.eclipse.swt.widgets.Combo; |
26 |
import org.eclipse.swt.widgets.Combo; |
26 |
import org.eclipse.swt.widgets.Composite; |
27 |
import org.eclipse.swt.widgets.Composite; |
Lines 126-137
Link Here
|
126 |
((GridData) fClearAllBlankLines.getLayoutData()).horizontalSpan = 2; |
127 |
((GridData) fClearAllBlankLines.getLayoutData()).horizontalSpan = 2; |
127 |
fSpaceBeforeEmptyCloseTag = createCheckBox(formattingGroup, XMLUIMessages.Space_before_empty_close_tag); |
128 |
fSpaceBeforeEmptyCloseTag = createCheckBox(formattingGroup, XMLUIMessages.Space_before_empty_close_tag); |
128 |
((GridData) fSpaceBeforeEmptyCloseTag.getLayoutData()).horizontalSpan = 2; |
129 |
((GridData) fSpaceBeforeEmptyCloseTag.getLayoutData()).horizontalSpan = 2; |
129 |
|
|
|
130 |
fIndentUsingTabs = createRadioButton(formattingGroup, XMLUIMessages.Indent_using_tabs); |
131 |
((GridData) fIndentUsingTabs.getLayoutData()).horizontalSpan = 2; |
132 |
|
130 |
|
133 |
fIndentUsingSpaces = createRadioButton(formattingGroup, XMLUIMessages.Indent_using_spaces); |
131 |
// [269224] - Place the indent controls in their own composite for proper tab ordering |
134 |
((GridData) fIndentUsingSpaces.getLayoutData()).horizontalSpan = 2; |
132 |
Composite indentComposite = createComposite(formattingGroup, 1); |
|
|
133 |
((GridData) indentComposite.getLayoutData()).horizontalSpan = 2; |
134 |
((GridLayout) indentComposite.getLayout()).marginWidth = 0; |
135 |
((GridLayout) indentComposite.getLayout()).marginHeight = 0; |
136 |
|
137 |
fIndentUsingTabs = createRadioButton(indentComposite, XMLUIMessages.Indent_using_tabs); |
138 |
((GridData) fIndentUsingTabs.getLayoutData()).horizontalSpan = 1; |
139 |
|
140 |
fIndentUsingSpaces = createRadioButton(indentComposite, XMLUIMessages.Indent_using_spaces); |
141 |
((GridData) fIndentUsingSpaces.getLayoutData()).horizontalSpan = 1; |
135 |
|
142 |
|
136 |
createLabel(formattingGroup, XMLUIMessages.Indentation_size); |
143 |
createLabel(formattingGroup, XMLUIMessages.Indentation_size); |
137 |
fIndentationSize = new Spinner(formattingGroup, SWT.READ_ONLY | SWT.BORDER); |
144 |
fIndentationSize = new Spinner(formattingGroup, SWT.READ_ONLY | SWT.BORDER); |