Package org.eclipse.ui.preferences

Examples of org.eclipse.ui.preferences.IWorkbenchPreferenceContainer


  }

  @Override
  public void createControl(Composite parent) {

    IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
    fConfigurationBlock = new PHPCSFixerConfigurationBlock(
        getNewStatusChangedListener(), getProject(), container,
        new FixerKeyBag());

    super.createControl(parent);
View Full Code Here


  }

  @Override
 
  public void createControl(Composite parent) {
    IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
    fConfigurationBlock = new SemanticAnalysisConfigurationBlock(getNewStatusChangedListener(), getProject(), container);

    super.createControl(parent);
  }
View Full Code Here

    prefLink.setText("You can add PHP binaries in the <a>PHP Executables</a> preference page.");
    prefLink.setLayoutData(gridData);

    prefLink.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer)getPreferenceContainer();
        container.openPage(PHPsPreferencePage.ID, null);
      };
    });

    Link helpLink = new Link(sourceFolderGroup, SWT.WRAP);
    helpLink.setLayoutData(gridData);
View Full Code Here

      Link link= new Link(section, SWT.WRAP | SWT.MULTI | SWT.LEFT_TO_RIGHT);
      link.setLayoutData(GridDataFactory.fillDefaults().span(2, 1).indent(0, 0).hint(150, SWT.DEFAULT).create());
      link.setText(JSPUIMessages.VALIDATION_JAVA_NOTICE);
      link.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer)getContainer();
          container.openPage(JAVA_SEVERITY_PROPERTY_PAGE, data);
        }
      });
      //new PreferenceLinkArea(section, SWT.WRAP | SWT.MULTI | SWT.LEFT_TO_RIGHT, JAVA_SEVERITY_PROPERTY_PAGE, JSPUIMessages.VALIDATION_JAVA_NOTICE, (IWorkbenchPreferenceContainer) getContainer(), data).getControl().setLayoutData(GridDataFactory.fillDefaults().span(2, 1).indent(0, 0).hint(150, SWT.DEFAULT).create());
      // open in same shell?
      // PreferencesUtil.createPropertyDialogOn(getShell(), getProject(), JAVA_SEVERITY_PROPERTY_PAGE, new String[] { JAVA_SEVERITY_PROPERTY_PAGE }, data).open();
View Full Code Here

      Link link= new Link(section, SWT.WRAP | SWT.MULTI | SWT.LEFT_TO_RIGHT);
      link.setLayoutData(GridDataFactory.fillDefaults().span(2, 1).indent(0, 0).hint(150, SWT.DEFAULT).create());
      link.setText(JSPUIMessages.VALIDATION_JAVA_NOTICE);
      link.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer)getContainer();
          container.openPage(JAVA_SEVERITY_PROPERTY_PAGE, data);
        }
      });
      //new PreferenceLinkArea(section, SWT.WRAP | SWT.MULTI | SWT.LEFT_TO_RIGHT, JAVA_SEVERITY_PROPERTY_PAGE, JSPUIMessages.VALIDATION_JAVA_NOTICE, (IWorkbenchPreferenceContainer) getContainer(), data).getControl().setLayoutData(GridDataFactory.fillDefaults().span(2, 1).indent(0, 0).hint(150, SWT.DEFAULT).create());
      // open in same shell?
      // PreferencesUtil.createPropertyDialogOn(getShell(), getProject(), JAVA_SEVERITY_PROPERTY_PAGE, new String[] { JAVA_SEVERITY_PROPERTY_PAGE }, data).open();
View Full Code Here

    // we can get here through performApply, in that case only post one
    // restart
    if (restart && !restartPosted) {
      if (getContainer() instanceof IWorkbenchPreferenceContainer) {
        IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
        UIJob job = new UIJob(WorkbenchMessages.ViewsPreference_restartRequestJobName) {
          public IStatus runInUIThread(IProgressMonitor monitor) {
            // make sure they really want to do this
            int really = new MessageDialog(
                null,
                WorkbenchMessages.ViewsPreference_presentationConfirm_title,
                null,
                WorkbenchMessages.ViewsPreference_presentationConfirm_message,
                MessageDialog.QUESTION,
                new String[] {
                    WorkbenchMessages.ViewsPreference_presentationConfirm_yes,
                    WorkbenchMessages.ViewsPreference_presentationConfirm_no },
                1).open();
            if (really == Window.OK) {
              PlatformUI.getWorkbench().restart();
            }
            return Status.OK_STATUS;
          }
        };
        job.setSystem(true);
        container.registerUpdateJob(job);
        restartPosted = true;
      }
    }
    return true;
  }
View Full Code Here

        classPathList =
            new CheckedListDialogField(null, null, new LabelProvider());
        classPathList.setDialogFieldListener(adapter);
        //TODO tets if everything works as expected
        IWorkbenchPreferenceContainer root = (IWorkbenchPreferenceContainer)JavaPlugin.getWorkspace().getRoot().getParent();
        //SWTUtil.createPreferenceLink((IWorkbenchPreferenceContainer));
        libraryPage = new LibrariesWorkbookPage( classPathList, root);
        outputField = new StringButtonDialogField(adapter);
        outputField.setDialogFieldListener(adapter);
        outputField.setLabelText(
View Full Code Here

  }

  @Override
  public void createControl(Composite parent) {

    IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
   
    configurationBlock = new SaveActionsConfigurationBlock(getNewStatusChangedListener(), getProject(), container);
    super.createControl(parent);
  }
View Full Code Here

  }

  @Override
  public void createControl(Composite parent) {

    IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
    LauncherKeyBag bag = new ComposerLauncherBag();
    configurationBlock = new ComposerConfigurationBlock(getNewStatusChangedListener(), getProject(), container, bag);
    super.createControl(parent);
  }
View Full Code Here

    this.imageHelper = imageHelper;
  }

  @Override
  public void createControl(final Composite parent) {
    IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
    IPreferenceStore preferenceStore = preferenceStoreAccessImpl
        .getWritablePreferenceStore(getProject());
    builderConfigurationBlock = new BuilderConfigurationBlock(getProject(), preferenceStore,
        configurationProvider, container, imageHelper);
    builderConfigurationBlock.setStatusChangeListener(getNewStatusChangedListener());
View Full Code Here

TOP

Related Classes of org.eclipse.ui.preferences.IWorkbenchPreferenceContainer

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.