Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkbenchPreferencePage


  /**
   * Creates the preference page this node stands for.
   */
  public void createPage() {
    IWorkbenchPreferencePage page;
    try {
      page = (IWorkbenchPreferencePage) WorkbenchPlugin.createExtension(
          getConfigurationElement(), IWorkbenchRegistryConstants.ATT_CLASS);
    } catch (CoreException e) {
      // Just inform the user about the error. The details are
      // written to the log by now.
      IStatus errStatus = StatusUtil.newStatus(e.getStatus(), WorkbenchMessages.PreferenceNode_errorMessage);
      StatusManager.getManager().handle(errStatus, StatusManager.SHOW);
      page = new ErrorPreferencePage();
    }

    page.init(PlatformUI.getWorkbench());
    if (getLabelImage() != null) {
      page.setImageDescriptor(getImageDescriptor());
    }
    page.setTitle(getLabelText());
    setPage(page);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IWorkbenchPreferencePage

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.