Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkbenchPropertyPage


        // "com.onpositive.gae.tools.core.pages",
        // new String[]{"com.onpositive.gae.tools.core.weblocation"},
        // project);
        // createPreferenceDialogOn.open();

        IWorkbenchPropertyPage page = new WebDirectoryLocation();
        page.setElement(project);
        PreferenceManager mgr = new PreferenceManager();
        IPreferenceNode node = new PreferenceNode("1", page);

        mgr.addToRoot(node);
        PreferenceDialog dialog = new PreferenceDialog(Display
            .getDefault().getActiveShell(), mgr);
        dialog.create();
        dialog.setMessage(page.getTitle());
        dialog.open();
      }

    });
View Full Code Here


   * @throws CoreException
   *             thrown if there is a problem creating the apge
   */
  public IWorkbenchPropertyPage createPage(Object element)
      throws CoreException {
    IWorkbenchPropertyPage ppage = null;
    ppage = (IWorkbenchPropertyPage) WorkbenchPlugin.createExtension(
        pageElement, IWorkbenchRegistryConstants.ATT_CLASS);

    ppage.setTitle(getPageName());

    Object adapted = element;
    if (adaptable) {
      adapted = getAdaptedElement(element);
      if (adapted == null) {
        String message = "Error adapting selection to Property page " + pageId + " is being ignored"; //$NON-NLS-1$ //$NON-NLS-2$             
        throw new CoreException(new Status(IStatus.ERROR,
            WorkbenchPlugin.PI_WORKBENCH, IStatus.ERROR, message,
            null));
      }
    }

    if (adapted instanceof IAdaptable)
      ppage.setElement((IAdaptable) adapted);
    else
      ppage.setElement(new AdaptableForwarder(adapted));

    return ppage;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IWorkbenchPropertyPage

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.