@Override protected IDialogSettings getDialogSettings() { return new DialogSettings("org.eclipse.pde.internal.ui.search.dialogs.FilteredTargetRepoIUSelectionDialog"); //$NON-NLS-1$ }
private DialogSettings createEmptySettings() { return new DialogSettings("Workbench"); //$NON-NLS-1$ }
@Override public IDialogSettings addNewSection(String sectionName) { DialogSettings section = new DialogSettings(sectionName); addSection(section); return section; }
@Override public IDialogSettings addNewSection(String sectionName) { DialogSettings section = new DialogSettings(sectionName); addSection(section); return section; }
public IDialogSettings addNewSection(String sectionName) { DialogSettings section = new DialogSettings(sectionName); addSection(section); return section; }
protected CustomArchetypeDialog(Shell shell, String title) { super(shell); this.title = title; this.message = Messages.CustomArchetypeDialog_message; setShellStyle(SWT.DIALOG_TRIM); IDialogSettings pluginSettings = M2EUIPluginActivator.getDefault().getDialogSettings(); dialogSettings = pluginSettings.getSection(DIALOG_SETTINGS); if(dialogSettings == null) { dialogSettings = new DialogSettings(DIALOG_SETTINGS); pluginSettings.addSection(dialogSettings); } }
private void removeDialogSettings(ISynchronizeParticipant participant) { String key = getSettingsKey(participant); IDialogSettings settings = getDialogSettings(); if (settings.getSection(key) != null) { // There isn't an explicit remove so just make sure // That the old settings are forgotten getDialogSettings().addSection(new DialogSettings(key)); } }
private void removeDialogSettings(ISynchronizeParticipant participant) { String key = getSettingsKey(participant); IDialogSettings settings = getDialogSettings(); if (settings.getSection(key) != null) { // There isn't an explicit remove so just make sure // That the old settings are forgotten getDialogSettings().addSection(new DialogSettings(key)); } }
private void saveBounds(Rectangle bounds) { IDialogSettings dialogBounds= fSettings.getSection(DIALOG_BOUNDS_KEY); if (dialogBounds == null) { dialogBounds= new DialogSettings(DIALOG_BOUNDS_KEY); fSettings.addSection(dialogBounds); } dialogBounds.put(X, bounds.x); dialogBounds.put(Y, bounds.y); dialogBounds.put(WIDTH, bounds.width); dialogBounds.put(HEIGHT, bounds.height); } }
private void saveBounds(Rectangle bounds) { IDialogSettings dialogBounds= fSettings.getSection(DIALOG_BOUNDS_KEY); if (dialogBounds == null) { dialogBounds= new DialogSettings(DIALOG_BOUNDS_KEY); fSettings.addSection(dialogBounds); } dialogBounds.put(X, bounds.x); dialogBounds.put(Y, bounds.y); dialogBounds.put(WIDTH, bounds.width); dialogBounds.put(HEIGHT, bounds.height); } }
private void saveBounds(Rectangle bounds) { IDialogSettings dialogBounds= fSettings.getSection(DIALOG_BOUNDS_KEY); if (dialogBounds == null) { dialogBounds= new DialogSettings(DIALOG_BOUNDS_KEY); fSettings.addSection(dialogBounds); } dialogBounds.put(X, bounds.x); dialogBounds.put(Y, bounds.y); dialogBounds.put(WIDTH, bounds.width); dialogBounds.put(HEIGHT, bounds.height); } }
private void saveBounds(Rectangle bounds) { IDialogSettings dialogBounds= fSettings.getSection(DIALOG_BOUNDS_KEY); if (dialogBounds == null) { dialogBounds= new DialogSettings(DIALOG_BOUNDS_KEY); fSettings.addSection(dialogBounds); } dialogBounds.put(X, bounds.x); dialogBounds.put(Y, bounds.y); dialogBounds.put(WIDTH, bounds.width); dialogBounds.put(HEIGHT, bounds.height); } }
private void saveBounds(Rectangle bounds) { IDialogSettings dialogBounds = fSettings.getSection(DIALOG_BOUNDS_KEY); if(dialogBounds == null) { dialogBounds = new DialogSettings(DIALOG_BOUNDS_KEY); fSettings.addSection(dialogBounds); } dialogBounds.put(X, bounds.x); dialogBounds.put(Y, bounds.y); dialogBounds.put(WIDTH, bounds.width); dialogBounds.put(HEIGHT, bounds.height); }
public OpenTypeSelectionDialog2(Shell parent, boolean multi, IRunnableContext context, IJavaSearchScope scope, int elementKinds, TypeSelectionExtension extension) { super(parent, multi, context, scope, elementKinds, extension); IDialogSettings settings= JavaPlugin.getDefault().getDialogSettings(); fSettings= settings.getSection(DIALOG_SETTINGS); if (fSettings == null) { fSettings= new DialogSettings(DIALOG_SETTINGS); settings.addSection(fSettings); fSettings.put(WIDTH, 480); fSettings.put(HEIGHT, 320); } }
private void saveBounds(Rectangle bounds) { IDialogSettings dialogBounds= fSettings.getSection(DIALOG_BOUNDS_KEY); if (dialogBounds == null) { dialogBounds= new DialogSettings(DIALOG_BOUNDS_KEY); fSettings.addSection(dialogBounds); } dialogBounds.put(X, bounds.x); dialogBounds.put(Y, bounds.y); dialogBounds.put(WIDTH, bounds.width); dialogBounds.put(HEIGHT, bounds.height); } }
public OpenTypeSelectionDialog2(Shell parent, boolean multi, IRunnableContext context, IJavaSearchScope scope, int elementKinds, TypeSelectionExtension extension) { super(parent, multi, context, scope, elementKinds, extension); IDialogSettings settings= JavaPlugin.getDefault().getDialogSettings(); fSettings= settings.getSection(DIALOG_SETTINGS); if (fSettings == null) { fSettings= new DialogSettings(DIALOG_SETTINGS); settings.addSection(fSettings); fSettings.put(WIDTH, 480); fSettings.put(HEIGHT, 320); } }
protected RemoteArchetypeCatalogDialog(Shell shell, ArchetypeCatalogFactory factory) { super(shell); this.archetypeCatalogFactory = factory; this.title = Messages.RemoteArchetypeCatalogDialog_title; this.message = Messages.RemoteArchetypeCatalogDialog_message; setShellStyle(SWT.DIALOG_TRIM); setHelpAvailable(false); IDialogSettings pluginSettings = M2EUIPluginActivator.getDefault().getDialogSettings(); dialogSettings = pluginSettings.getSection(DIALOG_SETTINGS); if(dialogSettings == null) { dialogSettings = new DialogSettings(DIALOG_SETTINGS); pluginSettings.addSection(dialogSettings); } }
private static IDialogSettings getDialogSettings(String settingsSection) { // activator is null inside WindowBuilder design editor M2EUIPluginActivator activator = M2EUIPluginActivator.getDefault(); IDialogSettings pluginSettings = activator != null ? activator.getDialogSettings() : null; IDialogSettings settings = pluginSettings != null ? pluginSettings.getSection(settingsSection) : null; if(settings == null) { settings = new DialogSettings(settingsSection); settings.put(KEY_WIDTH, 480); settings.put(KEY_HEIGHT, 450); if(pluginSettings != null) { pluginSettings.addSection(settings); } } return settings; }
protected LocalArchetypeCatalogDialog(Shell shell, ArchetypeCatalogFactory factory) { super(shell); this.archetypeCatalogFactory = factory; this.title = Messages.LocalArchetypeCatalogDialog_title; this.message = Messages.LocalArchetypeCatalogDialog_message; setShellStyle(SWT.DIALOG_TRIM); setHelpAvailable(false); IDialogSettings pluginSettings = M2EUIPluginActivator.getDefault().getDialogSettings(); dialogSettings = pluginSettings.getSection(DIALOG_SETTINGS); if(dialogSettings == null) { dialogSettings = new DialogSettings(DIALOG_SETTINGS); pluginSettings.addSection(dialogSettings); } }
/** Loads the dialog settings using the page name as a section name. */ private void initDialogSettings() { IDialogSettings pluginSettings; // This is strictly to get SWT Designer working locally without blowing up. if(MavenPluginActivator.getDefault() == null) { pluginSettings = new DialogSettings("Workbench"); } else { pluginSettings = M2EUIPluginActivator.getDefault().getDialogSettings(); } dialogSettings = pluginSettings.getSection(getName()); if(dialogSettings == null) { dialogSettings = pluginSettings.addNewSection(getName()); pluginSettings.addSection(dialogSettings); } }