Package org.eclipse.ui.plugin

Examples of org.eclipse.ui.plugin.AbstractUIPlugin


  /**
   * Creates a wizard for creating a new project resource in the workspace.
   */
  public PerlProjectResourceWizard() {
    AbstractUIPlugin plugin =
      (AbstractUIPlugin) Platform.getPlugin(PlatformUI.PLUGIN_ID);
    IDialogSettings workbenchSettings = plugin.getDialogSettings();
    IDialogSettings section = workbenchSettings.getSection("BasicNewProjectResourceWizard"); //$NON-NLS-1$
    if (section == null)
      section = workbenchSettings.addNewSection("BasicNewProjectResourceWizard"); //$NON-NLS-1$
    setDialogSettings(section);
  }
View Full Code Here


    // Do not change perspective if the configuration element is
    // not specified.
    if (configElement == null)
      return;

    AbstractUIPlugin uiPlugin =
      (AbstractUIPlugin) Platform.getPlugin(PlatformUI.PLUGIN_ID);

    // Retrieve the new project open perspective preference setting
    String perspSetting =
      uiPlugin.getPreferenceStore().getString(
          org.eclipse.ui.ide.IDE.Preferences.PROJECT_OPEN_NEW_PERSPECTIVE);

    // Return if do not switch perspective setting
    if (perspSetting
      .equals(IWorkbenchPreferenceConstants.NO_NEW_PERSPECTIVE))
View Full Code Here

    super(GRID);

    setDescription(TextEditorMessages.PreferencePage_description);
    Plugin plugin= Platform.getPlugin("org.eclipse.ui.workbench"); //$NON-NLS-1$
    if (plugin instanceof AbstractUIPlugin) {
      AbstractUIPlugin uiPlugin= (AbstractUIPlugin) plugin;
      setPreferenceStore(uiPlugin.getPreferenceStore());
    }
  }
View Full Code Here

   * @param targetKey the key to be used in the target preference store
   */
  public static void startPropagate(IPreferenceStore target, String targetKey) {
    Plugin plugin= Platform.getPlugin("org.eclipse.ui.workbench"); //$NON-NLS-1$
    if (plugin instanceof AbstractUIPlugin) {
      AbstractUIPlugin uiPlugin= (AbstractUIPlugin) plugin;
      IPreferenceStore store= uiPlugin.getPreferenceStore();
      if (store != null)
        PropagatingFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT, target, targetKey);
    }
  }
View Full Code Here

    private IStructuredSelection selection;

    private ExportParWizardPage page;

    public ExportParWizard() {
        AbstractUIPlugin plugin = DesignerPlugin.getDefault();
        IDialogSettings workbenchSettings = plugin.getDialogSettings();
        IDialogSettings section = workbenchSettings.getSection("ParExportWizard");
        if (section == null)
            section = workbenchSettings.addNewSection("ParExportWizard");
        setDialogSettings(section);
    }
View Full Code Here

              e);
      subEx.openErrorDialog(getShell());
      this.dispose();
    }
    try {
      AbstractUIPlugin plugin = PearPlugin.getDefault();
      IDialogSettings workbenchSettings = plugin.getDialogSettings();
      IDialogSettings section = workbenchSettings.getSection("PearFileExportWizard");//$NON-NLS-1$
      if (section == null)
        section = workbenchSettings.addNewSection("PearFileExportWizard");//$NON-NLS-1$
      setDialogSettings(section);
    } catch (Throwable e) {
View Full Code Here

  @Override
  public void setDefaults(ILaunchConfigurationWorkingCopy config) {
    super.setDefaults(config);
    try {
      AbstractUIPlugin junitPlugin = JdtUiUtils.getBundleActivator("org.eclipse.jdt.junit");
      IPreferenceStore preferenceStore = junitPlugin.getPreferenceStore();
      String arg =
          preferenceStore.getBoolean("org.eclipse.jdt.junit.enable_assertions") ? "-ea" : "";
      config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, arg);
    } catch (Exception e) {
      DesignerPlugin.log(e);
View Full Code Here

   * @param targetKey the key to be used in the target preference store
   */
  public static void startPropagate(IPreferenceStore target, String targetKey) {
    Plugin plugin= Platform.getPlugin("org.eclipse.ui.workbench"); //$NON-NLS-1$
    if (plugin instanceof AbstractUIPlugin) {
      AbstractUIPlugin uiPlugin= (AbstractUIPlugin) plugin;
      IPreferenceStore store= uiPlugin.getPreferenceStore();
      if (store != null)
        PropagatingFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT, target, targetKey);
    }
  }
View Full Code Here

  /**
   * Creates a wizard for importing resources into the workspace from a zip
   * file.
   */
  public PharFileImportWizard() {
    AbstractUIPlugin plugin = WorkbenchPlugin.getDefault();
    IDialogSettings workbenchSettings = plugin.getDialogSettings();
    IDialogSettings section = workbenchSettings
        .getSection("ZipFileImportWizard"); //$NON-NLS-1$
    if (section == null) {
      section = workbenchSettings.addNewSection("ZipFileImportWizard"); //$NON-NLS-1$
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.plugin.AbstractUIPlugin

Copyright © 2018 www.massapicom. 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.