List of usage examples for org.eclipse.jface.dialogs DialogSettings addSection
@Override
public void addSection(IDialogSettings section)
From source file:org.eclipse.jst.jsf.ui.internal.project.facet.JSFFacetInstallPage.java
License:Open Source License
private void saveSettings() { DialogSettings root = new DialogSettings(SETTINGS_ROOT); dialogSettings.addSection(root);/*from ww w . j ava 2 s .co m*/ root.put(SETTINGS_CONFIGURE_SERVLET, getConfigureServlet()); root.put(SETTINGS_CONFIG, getJSFConfig()); root.put(SETTINGS_SERVLET, getJSFServletName()); root.put(SETTINGS_SERVLET_CLASSNAME, getJSFServletClassname()); DialogSettings mappings = new DialogSettings(SETTINGS_URL_MAPPINGS); root.addSection(mappings); mappings.put(SETTINGS_URL_PATTERN, getJSFPatterns()); }
From source file:org.eclipse.jst.ws.jaxrs.ui.internal.project.facet.JAXRSFacetInstallPage.java
License:Open Source License
private void saveSettings() { DialogSettings root = new DialogSettings(IJAXRSUIConstants.SETTINGS_ROOT); dialogSettings.addSection(root);//from w ww . j a va 2s . c om root.put(SETTINGS_SERVLET, getJAXRSServletName()); LibraryInstallDelegate librariesInstallDelegate = (LibraryInstallDelegate) getDataModel() .getProperty(LIBRARY_PROVIDER_DELEGATE); root.put(new String(librariesInstallDelegate.getLibraryProvider().getId() + SETTINGS_SERVLET_CLASSNAME), getJAXRSServletClassname()); DialogSettings mappings = new DialogSettings(SETTINGS_URL_MAPPINGS); root.addSection(mappings); mappings.put(SETTINGS_URL_PATTERN, getJAXRSPatterns()); }