Lines 34-41
Link Here
|
34 |
import org.eclipse.swt.widgets.Label; |
34 |
import org.eclipse.swt.widgets.Label; |
35 |
import org.eclipse.swt.widgets.Tree; |
35 |
import org.eclipse.swt.widgets.Tree; |
36 |
|
36 |
|
|
|
37 |
import org.eclipse.jface.dialogs.Dialog; |
37 |
import org.eclipse.jface.dialogs.IMessageProvider; |
38 |
import org.eclipse.jface.dialogs.IMessageProvider; |
38 |
import org.eclipse.jface.operation.IRunnableWithProgress; |
39 |
import org.eclipse.jface.operation.IRunnableWithProgress; |
|
|
40 |
import org.eclipse.jface.resource.JFaceResources; |
39 |
import org.eclipse.jface.text.Document; |
41 |
import org.eclipse.jface.text.Document; |
40 |
import org.eclipse.jface.text.IDocument; |
42 |
import org.eclipse.jface.text.IDocument; |
41 |
import org.eclipse.jface.text.IDocumentPartitioner; |
43 |
import org.eclipse.jface.text.IDocumentPartitioner; |
Lines 62-67
Link Here
|
62 |
|
64 |
|
63 |
import org.eclipse.jdt.ui.JavaElementLabelProvider; |
65 |
import org.eclipse.jdt.ui.JavaElementLabelProvider; |
64 |
import org.eclipse.jdt.ui.JavaElementSorter; |
66 |
import org.eclipse.jdt.ui.JavaElementSorter; |
|
|
67 |
import org.eclipse.jdt.ui.PreferenceConstants; |
65 |
import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration; |
68 |
import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration; |
66 |
import org.eclipse.jdt.ui.text.JavaTextTools; |
69 |
import org.eclipse.jdt.ui.text.JavaTextTools; |
67 |
|
70 |
|
Lines 73-79
Link Here
|
73 |
import org.eclipse.jdt.internal.corext.Assert; |
76 |
import org.eclipse.jdt.internal.corext.Assert; |
74 |
import org.eclipse.jdt.internal.corext.refactoring.structure.PullUpRefactoring; |
77 |
import org.eclipse.jdt.internal.corext.refactoring.structure.PullUpRefactoring; |
75 |
import org.eclipse.jdt.internal.corext.refactoring.util.JavaElementUtil; |
78 |
import org.eclipse.jdt.internal.corext.refactoring.util.JavaElementUtil; |
76 |
import org.eclipse.jdt.internal.ui.refactoring.RefactoringMessages; |
|
|
77 |
|
79 |
|
78 |
class PullUpInputPage2 extends UserInputWizardPage { |
80 |
class PullUpInputPage2 extends UserInputWizardPage { |
79 |
|
81 |
|
Lines 242-255
Link Here
|
242 |
* @see IDialogPage#createControl(Composite) |
244 |
* @see IDialogPage#createControl(Composite) |
243 |
*/ |
245 |
*/ |
244 |
public void createControl(Composite parent) { |
246 |
public void createControl(Composite parent) { |
245 |
Composite composite= new Composite(parent, SWT.NONE); |
247 |
Composite composite= new Composite(parent, SWT.NONE); |
246 |
composite.setLayout(new GridLayout()); |
248 |
composite.setLayout(new GridLayout()); |
247 |
|
249 |
|
248 |
createTreeAndSourceViewer(composite); |
250 |
createTreeAndSourceViewer(composite); |
249 |
createButtonComposite(composite); |
251 |
createButtonComposite(composite); |
250 |
setControl(composite); |
252 |
setControl(composite); |
251 |
|
253 |
|
252 |
WorkbenchHelp.setHelp(getControl(), IJavaHelpContextIds.PULL_UP_WIZARD_PAGE); |
254 |
Dialog.applyDialogFont(composite); |
|
|
255 |
WorkbenchHelp.setHelp(getControl(), IJavaHelpContextIds.PULL_UP_WIZARD_PAGE); |
253 |
} |
256 |
} |
254 |
|
257 |
|
255 |
private void createButtonComposite(Composite superComposite) { |
258 |
private void createButtonComposite(Composite superComposite) { |
Lines 405-411
Link Here
|
405 |
fSourceViewer= new SourceViewer(c, null, SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION); |
408 |
fSourceViewer= new SourceViewer(c, null, SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION); |
406 |
fSourceViewer.configure(new JavaSourceViewerConfiguration(getJavaTextTools(), null)); |
409 |
fSourceViewer.configure(new JavaSourceViewerConfiguration(getJavaTextTools(), null)); |
407 |
fSourceViewer.setEditable(false); |
410 |
fSourceViewer.setEditable(false); |
408 |
fSourceViewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH)); |
411 |
fSourceViewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH)); |
|
|
412 |
fSourceViewer.getControl().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT)); |
409 |
} |
413 |
} |
410 |
|
414 |
|
411 |
private void createSourceViewerLabel(Composite c) { |
415 |
private void createSourceViewerLabel(Composite c) { |