There are 1 code examples for org.eclipse.jface.window.ApplicationWindow.
The API names are highlighted below.
You can use
button
to vote the code example(s) you like. The best code example will be ranked first next time. Thanks a lot for your feedback.
Project Name: rssowl.ui Package: org.rssowl.ui.internal.actions
Source Code: ManageConfigurationAction.java (Click to view .java file)
Method Code:
@SuppressWarnings("restriction") @Override public void run(){
Preferences pluginPreferences=org.eclipse.update.internal.ui.UpdateUI.getDefault().getPluginPreferences();
pluginPreferences.setDefault(CONFIGURATION_VIEW_SHOW_SITES,true);
pluginPreferences.setValue(CONFIGURATION_VIEW_SHOW_SITES,false);
pluginPreferences.setDefault(CONFIGURATION_VIEW_SHOW_NESTED_FEATURES,true);
pluginPreferences.setValue(CONFIGURATION_VIEW_SHOW_NESTED_FEATURES,false);
pluginPreferences.setDefault(CONFIGURATION_VIEW_SHOW_DISABLED,false);
pluginPreferences.setValue(CONFIGURATION_VIEW_SHOW_DISABLED,true);
org.eclipse.update.internal.ui.UpdateUI.getDefault().savePluginPreferences();
ApplicationWindow appWindow=new org.eclipse.update.internal.ui.ConfigurationManagerWindow(fShell){
@Override public MenuManager getMenuBarManager(){
return new MenuManager();
}
}
;
appWindow.create();
appWindow.getShell().setText(Messages.ManageConfigurationAction_MANAGE_ADDONS);
appWindow.getShell().setImages(fShell.getImages());
appWindow.open();
}