Package org.eclipse.ui.statushandlers

Examples of org.eclipse.ui.statushandlers.AbstractStatusHandler


   *             thrown if there is a problem creating the handler
   */
  public synchronized AbstractStatusHandler getStatusHandler()
      throws CoreException {
    if (cachedInstance == null) {
      AbstractStatusHandler statusHandler = (AbstractStatusHandler) configElement
          .createExecutableExtension(IWorkbenchRegistryConstants.ATT_CLASS);
      statusHandler.setId(configElement
          .getAttribute(IWorkbenchRegistryConstants.ATT_ID));

      IConfigurationElement parameters[] = configElement
          .getChildren(IWorkbenchRegistryConstants.TAG_PARAMETER);

      Map params = new HashMap();

      for (int i = 0; i < parameters.length; i++) {
        params
            .put(
                parameters[i]
                    .getAttribute(IWorkbenchRegistryConstants.ATT_NAME),
                parameters[i]
                    .getAttribute(IWorkbenchRegistryConstants.ATT_VALUE));
      }

      statusHandler.setParams(params);
      cachedInstance = statusHandler;
    }
    return cachedInstance;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.statushandlers.AbstractStatusHandler

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.