private void showSpecificControls(boolean show) { if (fElements.size() != 1) return; Preference[] preferences= fElements.get(0).getSpecificPreferences(); if (preferences.length == 0) return; fRequiresRelayout= true; for (int i= 0; i < preferences.length; i++) { Preference preference= preferences[i]; Control control= preference.getControl(); control.setVisible(show); ((GridData)control.getLayoutData()).exclude= !show; } }
private void showSpecificControls(boolean show) { if (fElements.size() != 1) return; Preference[] preferences= ((Category)fElements.get(0)).getSpecificPreferences(); if (preferences.length == 0) return; fRequiresRelayout= true; for (int i= 0; i < preferences.length; i++) { Preference preference= preferences[i]; Control control= preference.getControl(); control.setVisible(show); ((GridData)control.getLayoutData()).exclude= !show; } }
Control control= expressionWrapPositionPreference.getControl(); control.setVisible(false); ((GridData)control.getLayoutData()).exclude= true;
private Preference createWrapBeforeButton(int numColumns, String message, String setting) { Preference preference= createCheckboxPref(fOptionsGroup, 1, message, setting, FALSE_TRUE); Control control= preference.getControl(); control.setVisible(false); GridData layoutData= (GridData)control.getLayoutData(); layoutData.exclude= true; layoutData.horizontalAlignment= SWT.BEGINNING; layoutData.horizontalSpan= numColumns - 1; layoutData.grabExcessHorizontalSpace= false; return preference; }
public void add(Preference preference) { final Control control= preference.getControl(); if (control != null) add(control); }
public void add(Preference preference) { final Control control= preference.getControl(); if (control != null) add(control); }
public void add(Preference preference) { final Control control= preference.getControl(); if (control != null) add(control); }