Examples of IDialogSettings


Examples of org.eclipse.jface.dialogs.IDialogSettings

  /*
   * @see org.eclipse.jface.dialogs.Dialog#getDialogBoundsSettings()
   */
  @Override
  protected IDialogSettings getDialogBoundsSettings() {
    IDialogSettings settings = Activator.getDefault().getDialogSettings();
    IDialogSettings section = settings.getSection(SETTINGS_SECTION);
    if (section != null)
      return section;

    return settings.addNewSection(SETTINGS_SECTION);
  }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

  /*
   * @see org.eclipse.jface.dialogs.Dialog#getDialogBoundsSettings()
   */
  @Override
  protected IDialogSettings getDialogBoundsSettings() {
    IDialogSettings section = fDialogSettings.getSection(SETTINGS_SECTION);
    if (section != null)
      return section;

    return fDialogSettings.addNewSection(SETTINGS_SECTION);
  }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

        initTypePage(jelem);
        doStatusUpdate();

        boolean createConstructors = false;
        boolean createUnimplemented = true;
        IDialogSettings dialogSettings = getDialogSettings();
        if (dialogSettings != null) {
            IDialogSettings section = dialogSettings.getSection(PAGE_NAME);
            if (section != null) {
                createConstructors = section.getBoolean(SETTINGS_CREATECONSTR);
                createUnimplemented = section.getBoolean(SETTINGS_CREATEUNIMPLEMENTED);
            }
        }

        setMethodStubSelection(createConstructors, createUnimplemented, true);
    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

  /**
   * Updates the old features setting and returns a map of new features.
   */
  private Map createNewBundleGroupsMap() {
    // retrieve list of installed bundle groups from last session
    IDialogSettings settings = IDEWorkbenchPlugin.getDefault()
        .getDialogSettings();
    String[] previousFeaturesArray = settings.getArray(INSTALLED_FEATURES);

    // get a map of currently installed bundle groups and store it for next
    // session
    Map bundleGroups = computeBundleGroupMap();
    String[] currentFeaturesArray = new String[bundleGroups.size()];
    bundleGroups.keySet().toArray(currentFeaturesArray);
    settings.put(INSTALLED_FEATURES, currentFeaturesArray);

    // remove the previously known from the current set
    if (previousFeaturesArray != null) {
      for (int i = 0; i < previousFeaturesArray.length; ++i) {
        bundleGroups.remove(previousFeaturesArray[i]);
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

        initTypePage(jelem);
        doStatusUpdate();

        boolean createConstructors = false;
        boolean createUnimplemented = true;
        IDialogSettings dialogSettings = getDialogSettings();
        if (dialogSettings != null) {
            IDialogSettings section = dialogSettings.getSection(PAGE_NAME);
            if (section != null) {
                createConstructors = section.getBoolean(SETTINGS_CREATECONSTR);
                createUnimplemented = section.getBoolean(SETTINGS_CREATEUNIMPLEMENTED);
            }
        }

        setMethodStubSelection(createConstructors, createUnimplemented, true);
    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

     * @see org.eclipse.jface.dialogs.Dialog#getDialogBoundsSettings()
     * @since 3.2
     */
    protected IDialogSettings getDialogBoundsSettings() {
      String sectionName= getClass().getName() + "_dialogBounds"; //$NON-NLS-1$
      IDialogSettings settings= EclipseEmmetPlugin.getDefault().getDialogSettings();
      IDialogSettings section= settings.getSection(sectionName);
      if (section == null)
        section= settings.addNewSection(sectionName);
      return section;
    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

    /**
     * Stores the current configuration in the dialog store.
     */
    private void writeConfiguration() {
        final IDialogSettings s = getDialogSettings();

        final int historySize = Math.min(fPreviousSearchPatterns.size(), HISTORY_SIZE);
        s.put(STORE_HISTORY_SIZE, historySize);
        for (int i = 0; i < historySize; i++) {
            final IDialogSettings histSettings = s.addNewSection(STORE_HISTORY + i);
            final SearchPatternData data = fPreviousSearchPatterns.get(i);
            data.store(histSettings);
        }
    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

    /**
     * Initializes itself from the stored page settings.
     */
    private void readConfiguration() {
        final IDialogSettings s = getDialogSettings();

        try {
            final int historySize = s.getInt(STORE_HISTORY_SIZE);
            for (int i = 0; i < historySize; i++) {
                final IDialogSettings histSettings = s.getSection(STORE_HISTORY + i);
                if (histSettings != null) {
                    final SearchPatternData data = SearchPatternData.create(histSettings);
                    if (data != null) {
                        fPreviousSearchPatterns.add(data);
                    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

     *            the name of the section
     * @return the section of the given name
     * @since 3.2
     */
    public IDialogSettings getDialogSettingsSection(final String name) {
        final IDialogSettings dialogSettings = getDialogSettings();
        IDialogSettings section = dialogSettings.getSection(name);
        if (section == null) {
            section = dialogSettings.addNewSection(name);
        }
        return section;
    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.IDialogSettings

        final RuntimeInfoPreferencesSerializer serializer = new RuntimeInfoPreferencesSerializer();
        serializer.store(new RuntimeInfoCatalogData(runtimes, defaultRuntime.getName(),
                erlideRuntime.getName()));

        // save column widths
        final IDialogSettings settings = ErlideUIPlugin.getDefault().getDialogSettings();
        saveColumnSettings(settings, RUNTIMES_PREFERENCE_PAGE);

        if (restart) {
            new UIJob("restart") {
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.