|
Lines 15-21
Link Here
|
| 15 |
import org.eclipse.jface.dialogs.IDialogConstants; |
15 |
import org.eclipse.jface.dialogs.IDialogConstants; |
| 16 |
import org.eclipse.jface.preference.IPreferenceStore; |
16 |
import org.eclipse.jface.preference.IPreferenceStore; |
| 17 |
import org.eclipse.jface.preference.PreferencePage; |
17 |
import org.eclipse.jface.preference.PreferencePage; |
| 18 |
import org.eclipse.jface.resource.JFaceResources; |
|
|
| 19 |
import org.eclipse.swt.SWT; |
18 |
import org.eclipse.swt.SWT; |
| 20 |
import org.eclipse.swt.layout.GridData; |
19 |
import org.eclipse.swt.layout.GridData; |
| 21 |
import org.eclipse.swt.layout.GridLayout; |
20 |
import org.eclipse.swt.layout.GridLayout; |
|
Lines 57-64
Link Here
|
| 57 |
data.horizontalAlignment = GridData.FILL; |
56 |
data.horizontalAlignment = GridData.FILL; |
| 58 |
intro.setLayoutData(data); |
57 |
intro.setLayoutData(data); |
| 59 |
|
58 |
|
| 60 |
new Label(composite, SWT.NULL); new Label(composite, SWT.NULL); new Label(composite, SWT.NULL); // spacer |
|
|
| 61 |
|
| 62 |
new Label(composite, SWT.LEFT).setText(Policy.bind("ExtMethodPreferencePage_CVS_RSH")); //$NON-NLS-1$ |
59 |
new Label(composite, SWT.LEFT).setText(Policy.bind("ExtMethodPreferencePage_CVS_RSH")); //$NON-NLS-1$ |
| 63 |
cvsRsh = new Text(composite, SWT.BORDER); |
60 |
cvsRsh = new Text(composite, SWT.BORDER); |
| 64 |
cvsRsh.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); |
61 |
cvsRsh.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); |
|
Lines 82-100
Link Here
|
| 82 |
} |
79 |
} |
| 83 |
}); |
80 |
}); |
| 84 |
|
81 |
|
| 85 |
Label l = new Label(composite, SWT.LEFT | SWT.BOLD); |
|
|
| 86 |
l.setText(Policy.bind("ExtMethodPreferencePage_Note__5")); //$NON-NLS-1$ |
| 87 |
l.setFont(JFaceResources.getBannerFont()); |
| 88 |
|
| 89 |
l = new Label(composite, SWT.LEFT); |
| 90 |
l.setText(Policy.bind("ExtMethodPreferencePage_note_CVS_RSH")); //$NON-NLS-1$ |
| 91 |
data = new GridData(); |
| 92 |
data.horizontalSpan = 2; |
| 93 |
data.horizontalAlignment = GridData.FILL; |
| 94 |
l.setLayoutData(data); |
| 95 |
|
| 96 |
new Label(composite, SWT.NULL); new Label(composite, SWT.NULL); new Label(composite, SWT.NULL); // spacer |
| 97 |
|
| 98 |
new Label(composite, SWT.LEFT).setText(Policy.bind("ExtMethodPreferencePage_CVS_RSH_Parameters")); //$NON-NLS-1$ |
82 |
new Label(composite, SWT.LEFT).setText(Policy.bind("ExtMethodPreferencePage_CVS_RSH_Parameters")); //$NON-NLS-1$ |
| 99 |
cvsRshParameters = new Text(composite, SWT.BORDER); |
83 |
cvsRshParameters = new Text(composite, SWT.BORDER); |
| 100 |
data = new GridData(); |
84 |
data = new GridData(); |
|
Lines 102-141
Link Here
|
| 102 |
data.horizontalAlignment = GridData.FILL; |
86 |
data.horizontalAlignment = GridData.FILL; |
| 103 |
cvsRshParameters.setLayoutData(data); |
87 |
cvsRshParameters.setLayoutData(data); |
| 104 |
|
88 |
|
| 105 |
l = new Label(composite, SWT.LEFT | SWT.BOLD); |
|
|
| 106 |
l.setText(Policy.bind("ExtMethodPreferencePage_Note__5")); //$NON-NLS-1$ |
| 107 |
l.setFont(JFaceResources.getBannerFont()); |
| 108 |
|
| 109 |
l = new Label(composite, SWT.LEFT); |
| 110 |
l.setText(Policy.bind("ExtMethodPreferencePage_note_CVS_RSH_Parameters")); //$NON-NLS-1$ |
| 111 |
data = new GridData(); |
| 112 |
data.horizontalSpan = 2; |
| 113 |
data.horizontalAlignment = GridData.FILL; |
| 114 |
l.setLayoutData(data); |
| 115 |
|
| 116 |
new Label(composite, SWT.NULL); new Label(composite, SWT.NULL); new Label(composite, SWT.NULL); // spacer |
| 117 |
|
| 118 |
new Label(composite, SWT.LEFT).setText(Policy.bind("ExtMethodPreferencePage_CVS_SERVER__7")); //$NON-NLS-1$ |
89 |
new Label(composite, SWT.LEFT).setText(Policy.bind("ExtMethodPreferencePage_CVS_SERVER__7")); //$NON-NLS-1$ |
| 119 |
cvsServer = new Text(composite, SWT.BORDER); |
90 |
cvsServer = new Text(composite, SWT.BORDER); |
| 120 |
data = new GridData(); |
91 |
data = new GridData(); |
| 121 |
data.horizontalSpan = 2; |
92 |
data.horizontalSpan = 2; |
| 122 |
data.horizontalAlignment = GridData.FILL; |
93 |
data.horizontalAlignment = GridData.FILL; |
| 123 |
cvsServer.setLayoutData(data); |
94 |
cvsServer.setLayoutData(data); |
| 124 |
|
|
|
| 125 |
l = new Label(composite, SWT.LEFT | SWT.BOLD); |
| 126 |
l.setText(Policy.bind("ExtMethodPreferencePage_Note__8")); //$NON-NLS-1$ |
| 127 |
l.setFont(JFaceResources.getBannerFont()); |
| 128 |
|
| 129 |
l = new Label(composite, SWT.LEFT); |
| 130 |
l.setText(Policy.bind("ExtMethodPreferencePage_NoteForCVS_SERVER")); //$NON-NLS-1$ |
| 131 |
data = new GridData(); |
| 132 |
data.horizontalSpan = 2; |
| 133 |
data.horizontalAlignment = GridData.FILL; |
| 134 |
l.setLayoutData(data); |
| 135 |
|
| 136 |
|
95 |
|
| 137 |
initializeDefaults(); |
96 |
initializeDefaults(); |
| 138 |
WorkbenchHelp.setHelp(composite, IHelpContextIds.EXT_PREFERENCE_PAGE); |
97 |
WorkbenchHelp.setHelp(composite, IHelpContextIds.EXT_PREFERENCE_PAGE); |
|
|
98 |
WorkbenchHelp.setHelp(cvsRsh, IHelpContextIds.EXT_PREFERENCE_RSH); |
| 99 |
WorkbenchHelp.setHelp(cvsRshParameters, IHelpContextIds.EXT_PREFERENCE_PARAM); |
| 100 |
WorkbenchHelp.setHelp(cvsServer, IHelpContextIds.EXT_PREFERENCE_SERVER); |
| 139 |
Dialog.applyDialogFont(parent); |
101 |
Dialog.applyDialogFont(parent); |
| 140 |
return composite; |
102 |
return composite; |
| 141 |
} |
103 |
} |