| java.lang.Object org.eclipse.ui.dialogs.PreferencesUtil
PreferencesUtil | final public class PreferencesUtil (Code) | | The PreferencesUtil class is the class that opens a properties or preference
dialog on a set of ids.
since: 3.1 |
Method Summary | |
final public static PreferenceDialog | createPreferenceDialogOn(Shell shell, String preferencePageId, String[] displayedIds, Object data) Creates a workbench preference dialog and selects particular preference page.
If there is already a preference dialog open this dialog is used and its
selection is set to the page with id preferencePageId.
Show the other pages as filtered results using whatever filtering
criteria the search uses. | final public static PreferenceDialog | createPropertyDialogOn(Shell shell, IAdaptable element, String propertyPageId, String[] displayedIds, Object data) Creates a workbench preference dialog to a particular preference page.
Show the other pages as filtered results using whatever filtering
criteria the search uses. |
createPreferenceDialogOn | final public static PreferenceDialog createPreferenceDialogOn(Shell shell, String preferencePageId, String[] displayedIds, Object data)(Code) | | Creates a workbench preference dialog and selects particular preference page.
If there is already a preference dialog open this dialog is used and its
selection is set to the page with id preferencePageId.
Show the other pages as filtered results using whatever filtering
criteria the search uses. It is the responsibility of the caller to then
call open() . The call to open() will not
return until the dialog closes, so this is the last chance to manipulate
the dialog.
Parameters: shell - The Shell to parent the dialog off of if it is notalready created. May be null in which case the active workbench window will be usedif available. Parameters: preferencePageId - The identifier of the preference page to open; may benull . If it is null , then thepreference page is not selected or modified in any way. Parameters: displayedIds - The ids of the other pages to be displayed using the samefiltering criterea as search. If this is null ,then the all preference pages are shown. Parameters: data - Data that will be passed to all of the preference pages to beapplied as specified within the page as they are created. Ifthe data is null nothing will be called. a preference dialog. since: 3.1 See Also: PreferenceDialog.PreferenceDialog(ShellPreferenceManager) |
createPropertyDialogOn | final public static PreferenceDialog createPropertyDialogOn(Shell shell, IAdaptable element, String propertyPageId, String[] displayedIds, Object data)(Code) | | Creates a workbench preference dialog to a particular preference page.
Show the other pages as filtered results using whatever filtering
criteria the search uses. It is the responsibility of the caller to then
call open() . The call to open() will not
return until the dialog closes, so this is the last chance to manipulate
the dialog.
Parameters: shell - The shell to use to parent the dialog if required. Parameters: propertyPageId - The identifier of the preference page to open; may benull . If it is null , then thedialog is opened with no selected page. Parameters: element - IAdaptable An adaptable element to open the dialogon. Parameters: displayedIds - The ids of the other pages to be displayed using the samefiltering criterea as search. If this is null ,then the all preference pages are shown. Parameters: data - Data that will be passed to all of the preference pages to beapplied as specified within the page as they are created. Ifthe data is null nothing will be called. A preference dialog showing properties for the selection ornull if it could not be created. since: 3.1 |
|
|