Package org.eclipse.ui

Examples of org.eclipse.ui.SelectionEnabler$SelectionClass


          element, actionId);
      return; // There is nothing to be done.
    }

    // Read the enablesFor attribute, and enablement and selection elements.
    SelectionEnabler enabler = null;
    if (element.getAttribute(ATT_ENABLES_FOR) != null) {
      enabler = new SelectionEnabler(element);
    } else {
      IConfigurationElement[] kids = element.getChildren(TAG_ENABLEMENT);
      if (kids.length > 0) {
        enabler = new SelectionEnabler(element);
      }
    }
    final Expression enabledWhenExpression;
    if (enabler == null) {
      enabledWhenExpression = null;
View Full Code Here


        pluginId = configElement.getNamespace();

        // Read enablement declaration.
        if (configElement.getAttribute(IWorkbenchRegistryConstants.ATT_ENABLES_FOR) != null) {
            enabler = new SelectionEnabler(configElement);
        } else {
      IConfigurationElement[] kids = configElement
          .getChildren(IWorkbenchRegistryConstants.TAG_ENABLEMENT);
      IConfigurationElement[] kids2 = configElement
          .getChildren(IWorkbenchRegistryConstants.TAG_SELECTION);
      if (kids.length > 0 || kids2.length>0) {
        enabler = new SelectionEnabler(configElement);
      }
    }

        // Give enabler or delegate a chance to adjust enable state
        selectionChanged(new StructuredSelection());
View Full Code Here

    /**
     * Answer self's action enabler, creating it first iff necessary
     */
    protected SelectionEnabler getSelectionEnabler() {
        if (selectionEnabler == null) {
      selectionEnabler = new SelectionEnabler(configurationElement);
    }

        return selectionEnabler;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.SelectionEnabler$SelectionClass

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.