Examples of IDialogSettings


Examples of org.eclipse.jface.dialogs.IDialogSettings

        }
    }

    @Override
    protected IDialogSettings getDialogSettings() {
        IDialogSettings settings = ErlideUIPlugin.getDefault().getDialogSettings()
                .getSection(DIALOG_SETTINGS);

        if (settings == null) {
            settings = ErlideUIPlugin.getDefault().getDialogSettings()
                    .addNewSection(DIALOG_SETTINGS);
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

            @Override
            public void widgetDefaultSelected(final SelectionEvent e) {
                updateFilter(((Button) e.widget).getSelection());
            }
        });
        final IDialogSettings dialogSettings = ErlideUIPlugin.getDefault()
                .getDialogSettingsSection(DIALOG_SETTINGS);
        final boolean doFilter = !dialogSettings.getBoolean(DIALOG_SETTINGS_SHOW_ALL)
                && !fProjectsWithSpecifics.isEmpty();
        checkbox.setSelection(doFilter);
        updateFilter(doFilter);

        fTableViewer.setInput(new Object());
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

        if (selected) {
            fTableViewer.addFilter(fFilter);
        } else {
            fTableViewer.removeFilter(fFilter);
        }
        final IDialogSettings dialogSettings = ErlideUIPlugin.getDefault()
                .getDialogSettingsSection(DIALOG_SETTINGS);
        dialogSettings.put(DIALOG_SETTINGS_SHOW_ALL, !selected);
    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

    return (_state == Bundle.ACTIVE);
  }
 
  public static IDialogSettings getDialogStoreSection() {
    ErlideUIPlugin _default = ErlideUIPlugin.getDefault();
    final IDialogSettings dialogSettings = _default.getDialogSettings();
    IDialogSettings settingsStore = dialogSettings.getSection(SearchUtil.DIALOG_SETTINGS_KEY);
    boolean _tripleEquals = (settingsStore == null);
    if (_tripleEquals) {
      IDialogSettings _addNewSection = dialogSettings.addNewSection(SearchUtil.DIALOG_SETTINGS_KEY);
      settingsStore = _addNewSection;
    }
    return settingsStore;
  }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

  }
 
  public static void restoreState() {
    LRUWorkingSetsList _lRUWorkingSetsList = new LRUWorkingSetsList(SearchUtil.LRU_WORKINGSET_LIST_SIZE);
    SearchUtil.fgLRUWorkingSets = _lRUWorkingSetsList;
    final IDialogSettings settingsStore = SearchUtil.getDialogStoreSection();
    for (int i = (SearchUtil.LRU_WORKINGSET_LIST_SIZE - 1); (i >= 0); i--) {
      {
        final String[] lruWorkingSetNames = settingsStore.getArray((SearchUtil.STORE_LRU_WORKING_SET_NAMES + Integer.valueOf(i)));
        boolean _tripleNotEquals = (lruWorkingSetNames != null);
        if (_tripleNotEquals) {
          final Set<IWorkingSet> workingSets = new HashSet<IWorkingSet>(2);
          for (int j = 0; (j < lruWorkingSetNames.length); j++) {
            {
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

    if (_or) {
      return;
    }
    LRUWorkingSetsList _lRUWorkingSets = SearchUtil.getLRUWorkingSets();
    _lRUWorkingSets.add(workingSets);
    IDialogSettings _dialogStoreSection = SearchUtil.getDialogStoreSection();
    SearchUtil.saveState(_dialogStoreSection);
  }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

   * Runs the wizard in a dialog.
   *
   * @generated
   */
  public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = OntoUML.diagram.part.OntoUMLDiagramEditorPlugin
        .getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings
        .getSection(settingsKey);
    if (wizardDialogSettings == null) {
      wizardDialogSettings = pluginDialogSettings
          .addNewSection(settingsKey);
    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

         * @see org.eclipse.jface.window.Dialog#getDialogBoundsSettings()
         *
         * @since 3.2
         */
      protected IDialogSettings getDialogBoundsSettings() {
            IDialogSettings settings = WorkbenchPlugin.getDefault().getDialogSettings();
            IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION);
            if (section == null) {
                section = settings.addNewSection(DIALOG_SETTINGS_SECTION);
            }
            return section;
      }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

  /**
   * Return the dialog store to cache values into
   */

  protected IDialogSettings getDialogSettings() {
    IDialogSettings workbenchSettings = WorkbenchPlugin.getDefault()
        .getDialogSettings();
    IDialogSettings section = workbenchSettings
        .getSection("EditorSelectionDialog");//$NON-NLS-1$
    if (section == null) {
      section = workbenchSettings.addNewSection("EditorSelectionDialog");//$NON-NLS-1$
    }
    return section;
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

  /**
   * Use the dialog store to restore widget values to the values that they
   * held last time this wizard was used to completion
   */
  protected void restoreWidgetValues() {
    IDialogSettings settings = getDialogSettings();
    boolean wasExternal = settings.getBoolean(STORE_ID_INTERNAL_EXTERNAL);
    internalButton.setSelection(!wasExternal);
    externalButton.setSelection(wasExternal);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.