Lines 9-14
Link Here
|
9 |
|
9 |
|
10 |
import org.eclipse.swt.SWT; |
10 |
import org.eclipse.swt.SWT; |
11 |
import org.eclipse.swt.events.*; |
11 |
import org.eclipse.swt.events.*; |
|
|
12 |
import org.eclipse.swt.graphics.Font; |
12 |
import org.eclipse.swt.graphics.Image; |
13 |
import org.eclipse.swt.graphics.Image; |
13 |
import org.eclipse.swt.layout.*; |
14 |
import org.eclipse.swt.layout.*; |
14 |
import org.eclipse.swt.widgets.*; |
15 |
import org.eclipse.swt.widgets.*; |
Lines 16-21
Link Here
|
16 |
import org.eclipse.jface.viewers.Viewer; |
17 |
import org.eclipse.jface.viewers.Viewer; |
17 |
import org.eclipse.jface.wizard.WizardPage; |
18 |
import org.eclipse.jface.wizard.WizardPage; |
18 |
import org.eclipse.jface.resource.ImageDescriptor; |
19 |
import org.eclipse.jface.resource.ImageDescriptor; |
|
|
20 |
import org.eclipse.jface.resource.JFaceResources; |
19 |
|
21 |
|
20 |
import org.eclipse.core.resources.*; |
22 |
import org.eclipse.core.resources.*; |
21 |
import org.eclipse.core.runtime.*; |
23 |
import org.eclipse.core.runtime.*; |
Lines 145-155
Link Here
|
145 |
} |
147 |
} |
146 |
|
148 |
|
147 |
public void createControl(Composite parent) { |
149 |
public void createControl(Composite parent) { |
148 |
|
150 |
Font font = parent.getFont(); |
|
|
151 |
|
149 |
Composite composite= new Composite(parent, SWT.NULL); |
152 |
Composite composite= new Composite(parent, SWT.NULL); |
150 |
composite.setLayout(new GridLayout()); |
153 |
composite.setLayout(new GridLayout()); |
151 |
composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); |
154 |
composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); |
152 |
|
155 |
composite.setFont(font); |
|
|
156 |
|
153 |
setControl(composite); |
157 |
setControl(composite); |
154 |
|
158 |
|
155 |
buildPatchOptionsGroup(composite); |
159 |
buildPatchOptionsGroup(composite); |
Lines 167-177
Link Here
|
167 |
gd.grabExcessHorizontalSpace= true; |
171 |
gd.grabExcessHorizontalSpace= true; |
168 |
gd.grabExcessVerticalSpace= true; |
172 |
gd.grabExcessVerticalSpace= true; |
169 |
fTree.setLayoutData(gd); |
173 |
fTree.setLayoutData(gd); |
|
|
174 |
fTree.setFont(font); |
170 |
|
175 |
|
171 |
// bottom pane showing hunks in compare viewer |
176 |
// bottom pane showing hunks in compare viewer |
172 |
fHunkViewer= new CompareViewerSwitchingPane(splitter, SWT.BORDER | SWT.FLAT) { |
177 |
fHunkViewer= new CompareViewerSwitchingPane(splitter, SWT.BORDER | SWT.FLAT) { |
173 |
protected Viewer getViewer(Viewer oldViewer, Object input) { |
178 |
protected Viewer getViewer(Viewer oldViewer, Object input) { |
174 |
return CompareUI.findContentViewer(oldViewer, (ICompareInput)input, this, fCompareConfiguration); |
179 |
Viewer viewer = CompareUI.findContentViewer(oldViewer, (ICompareInput)input, this, fCompareConfiguration); |
|
|
180 |
|
181 |
if (viewer != null) |
182 |
viewer.getControl().setFont(JFaceResources.getTextFont()); |
183 |
|
184 |
return viewer; |
175 |
} |
185 |
} |
176 |
}; |
186 |
}; |
177 |
gd= new GridData(); |
187 |
gd= new GridData(); |
Lines 180-185
Link Here
|
180 |
gd.grabExcessHorizontalSpace= true; |
190 |
gd.grabExcessHorizontalSpace= true; |
181 |
gd.grabExcessVerticalSpace= true; |
191 |
gd.grabExcessVerticalSpace= true; |
182 |
fHunkViewer.setLayoutData(gd); |
192 |
fHunkViewer.setLayoutData(gd); |
|
|
193 |
fHunkViewer.setFont(font); |
183 |
|
194 |
|
184 |
// register listeners |
195 |
// register listeners |
185 |
|
196 |
|
Lines 222-228
Link Here
|
222 |
|
233 |
|
223 |
final Patcher patcher= fPatchWizard.getPatcher(); |
234 |
final Patcher patcher= fPatchWizard.getPatcher(); |
224 |
|
235 |
|
|
|
236 |
Font font = parent.getFont(); |
237 |
|
225 |
Group group= new Group(parent, SWT.NONE); |
238 |
Group group= new Group(parent, SWT.NONE); |
|
|
239 |
group.setFont(font); |
226 |
group.setText(PatchMessages.getString("PreviewPatchPage.PatchOptions.title")); //$NON-NLS-1$ |
240 |
group.setText(PatchMessages.getString("PreviewPatchPage.PatchOptions.title")); //$NON-NLS-1$ |
227 |
GridLayout layout= new GridLayout(); |
241 |
GridLayout layout= new GridLayout(); |
228 |
layout.numColumns= 5; |
242 |
layout.numColumns= 5; |
Lines 231-256
Link Here
|
231 |
//fPatchFileGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); |
245 |
//fPatchFileGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); |
232 |
|
246 |
|
233 |
// 1st row |
247 |
// 1st row |
234 |
new Label(group, SWT.NONE).setText(PatchMessages.getString("PreviewPatchPage.IgnoreSegments.text")); //$NON-NLS-1$ |
248 |
Label ignoreSegments = new Label(group, SWT.NONE); |
235 |
|
249 |
ignoreSegments.setText(PatchMessages.getString("PreviewPatchPage.IgnoreSegments.text")); //$NON-NLS-1$ |
|
|
250 |
ignoreSegments.setFont(font); |
251 |
|
236 |
fStripPrefixSegments= new Combo(group, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.SIMPLE); |
252 |
fStripPrefixSegments= new Combo(group, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.SIMPLE); |
237 |
int prefixCnt= patcher.getStripPrefixSegments(); |
253 |
int prefixCnt= patcher.getStripPrefixSegments(); |
238 |
String prefix= Integer.toString(prefixCnt); |
254 |
String prefix= Integer.toString(prefixCnt); |
239 |
fStripPrefixSegments.add(prefix); |
255 |
fStripPrefixSegments.add(prefix); |
|
|
256 |
fStripPrefixSegments.setFont(font); |
240 |
fStripPrefixSegments.setText(prefix); |
257 |
fStripPrefixSegments.setText(prefix); |
241 |
|
258 |
|
242 |
addSpacer(group); |
259 |
addSpacer(group); |
243 |
|
260 |
|
244 |
fReversePatchButton= new Button(group, SWT.CHECK); |
261 |
fReversePatchButton= new Button(group, SWT.CHECK); |
|
|
262 |
fReversePatchButton.setFont(font); |
245 |
fReversePatchButton.setText(PatchMessages.getString("PreviewPatchPage.ReversePatch.text")); //$NON-NLS-1$ |
263 |
fReversePatchButton.setText(PatchMessages.getString("PreviewPatchPage.ReversePatch.text")); //$NON-NLS-1$ |
246 |
|
264 |
|
247 |
addSpacer(group); |
265 |
addSpacer(group); |
248 |
|
266 |
|
249 |
// 2nd row |
267 |
// 2nd row |
250 |
Label l= new Label(group, SWT.NONE); |
268 |
Label l= new Label(group, SWT.NONE); |
|
|
269 |
l.setFont(font); |
251 |
l.setText(PatchMessages.getString("PreviewPatchPage.FuzzFactor.text")); //$NON-NLS-1$ |
270 |
l.setText(PatchMessages.getString("PreviewPatchPage.FuzzFactor.text")); //$NON-NLS-1$ |
252 |
l.setToolTipText(PatchMessages.getString("PreviewPatchPage.FuzzFactor.tooltip")); //$NON-NLS-1$ |
271 |
l.setToolTipText(PatchMessages.getString("PreviewPatchPage.FuzzFactor.tooltip")); //$NON-NLS-1$ |
253 |
fFuzzField= new Text(group, SWT.BORDER); |
272 |
fFuzzField= new Text(group, SWT.BORDER); |
|
|
273 |
fFuzzField.setFont(font); |
254 |
fFuzzField.setText("2"); //$NON-NLS-1$ |
274 |
fFuzzField.setText("2"); //$NON-NLS-1$ |
255 |
GridData gd2= new GridData(GridData.HORIZONTAL_ALIGN_CENTER); |
275 |
GridData gd2= new GridData(GridData.HORIZONTAL_ALIGN_CENTER); |
256 |
gd2.widthHint= 30; |
276 |
gd2.widthHint= 30; |
Lines 259-264
Link Here
|
259 |
addSpacer(group); |
279 |
addSpacer(group); |
260 |
|
280 |
|
261 |
fIgnoreWhitespaceButton= new Button(group, SWT.CHECK); |
281 |
fIgnoreWhitespaceButton= new Button(group, SWT.CHECK); |
|
|
282 |
fIgnoreWhitespaceButton.setFont(font); |
262 |
fIgnoreWhitespaceButton.setText(PatchMessages.getString("PreviewPatchPage.IgnoreWhitespace.text")); //$NON-NLS-1$ |
283 |
fIgnoreWhitespaceButton.setText(PatchMessages.getString("PreviewPatchPage.IgnoreWhitespace.text")); //$NON-NLS-1$ |
263 |
|
284 |
|
264 |
addSpacer(group); |
285 |
addSpacer(group); |