import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.jface.preference.PreferencePage;
-import org.eclipse.jface.text.Assert;
+//incastrix
+//import org.eclipse.jface.text.Assert;
+import org.eclipse.core.runtime.Assert;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
return contentAssistComposite;
}
- private void createDependency(final Button master, String masterKey,
- final Control slave) {
- indent(slave);
- boolean masterState = fStore.getBoolean(masterKey);
- slave.setEnabled(masterState);
- SelectionListener listener = new SelectionListener() {
- public void widgetSelected(SelectionEvent e) {
- slave.setEnabled(master.getSelection());
- }
-
- public void widgetDefaultSelected(SelectionEvent e) {
- }
- };
- master.addSelectionListener(listener);
- fMasterSlaveListeners.add(listener);
- }
-
- private static void indent(Control control) {
- GridData gridData = new GridData();
- gridData.horizontalIndent = 20;
- control.setLayoutData(gridData);
- }
+// private void createDependency(final Button master, String masterKey,
+// final Control slave) {
+// indent(slave);
+// boolean masterState = fStore.getBoolean(masterKey);
+// slave.setEnabled(masterState);
+// SelectionListener listener = new SelectionListener() {
+// public void widgetSelected(SelectionEvent e) {
+// slave.setEnabled(master.getSelection());
+// }
+//
+// public void widgetDefaultSelected(SelectionEvent e) {
+// }
+// };
+// master.addSelectionListener(listener);
+// fMasterSlaveListeners.add(listener);
+// }
+
+// private static void indent(Control control) {
+// GridData gridData = new GridData();
+// gridData.horizontalIndent = 20;
+// control.setLayoutData(gridData);
+// }
private static Text getTextControl(Control[] labelledTextField) {
return (Text) labelledTextField[1];
return new Control[] { labelControl, textControl };
}
- private void addCompletionRadioButtons(Composite contentAssistComposite) {
- Composite completionComposite = new Composite(contentAssistComposite,
- SWT.NONE);
- GridData ccgd = new GridData();
- ccgd.horizontalSpan = 2;
- completionComposite.setLayoutData(ccgd);
- GridLayout ccgl = new GridLayout();
- ccgl.marginWidth = 0;
- ccgl.numColumns = 2;
- completionComposite.setLayout(ccgl);
-
- // SelectionListener completionSelectionListener= new SelectionAdapter()
- // {
- // public void widgetSelected(SelectionEvent e) {
- // boolean insert= fCompletionInsertsRadioButton.getSelection();
- // fStore.setValue(PreferenceConstants.CODEASSIST_INSERT_COMPLETION,
- // insert);
- // }
- // };
- //
- // fCompletionInsertsRadioButton= new Button(completionComposite,
- // SWT.RADIO | SWT.LEFT);
- // fCompletionInsertsRadioButton.setText(PreferencesMessages.getString("JavaEditorPreferencePage.completionInserts"));
- // //$NON-NLS-1$
- // fCompletionInsertsRadioButton.setLayoutData(new GridData());
- // fCompletionInsertsRadioButton.addSelectionListener(completionSelectionListener);
- //
- // fCompletionOverwritesRadioButton= new Button(completionComposite,
- // SWT.RADIO | SWT.LEFT);
- // fCompletionOverwritesRadioButton.setText(PreferencesMessages.getString("JavaEditorPreferencePage.completionOverwrites"));
- // //$NON-NLS-1$
- // fCompletionOverwritesRadioButton.setLayoutData(new GridData());
- // fCompletionOverwritesRadioButton.addSelectionListener(completionSelectionListener);
- }
+// private void addCompletionRadioButtons(Composite contentAssistComposite) {
+// Composite completionComposite = new Composite(contentAssistComposite,
+// SWT.NONE);
+// GridData ccgd = new GridData();
+// ccgd.horizontalSpan = 2;
+// completionComposite.setLayoutData(ccgd);
+// GridLayout ccgl = new GridLayout();
+// ccgl.marginWidth = 0;
+// ccgl.numColumns = 2;
+// completionComposite.setLayout(ccgl);
+//
+// // SelectionListener completionSelectionListener= new SelectionAdapter()
+// // {
+// // public void widgetSelected(SelectionEvent e) {
+// // boolean insert= fCompletionInsertsRadioButton.getSelection();
+// // fStore.setValue(PreferenceConstants.CODEASSIST_INSERT_COMPLETION,
+// // insert);
+// // }
+// // };
+// //
+// // fCompletionInsertsRadioButton= new Button(completionComposite,
+// // SWT.RADIO | SWT.LEFT);
+// // fCompletionInsertsRadioButton.setText(PreferencesMessages.getString("JavaEditorPreferencePage.completionInserts"));
+// // //$NON-NLS-1$
+// // fCompletionInsertsRadioButton.setLayoutData(new GridData());
+// // fCompletionInsertsRadioButton.addSelectionListener(completionSelectionListener);
+// //
+// // fCompletionOverwritesRadioButton= new Button(completionComposite,
+// // SWT.RADIO | SWT.LEFT);
+// // fCompletionOverwritesRadioButton.setText(PreferencesMessages.getString("JavaEditorPreferencePage.completionOverwrites"));
+// // //$NON-NLS-1$
+// // fCompletionOverwritesRadioButton.setLayoutData(new GridData());
+// // fCompletionOverwritesRadioButton.addSelectionListener(completionSelectionListener);
+// }
public void initialize() {
initializeFields();