Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.ConfigurationElementSorter$ConfigurationElementComparator


     * Topological sort of the DAG defined by the plug-in dependencies
     * 1. TopoSort descriptors by plug-in dependency
     * 2. Insert into Directed Acyclic Graph
     * 3. TopoSort DAG: pick the source with the lowest gravity and remove from DAG
     */
    ConfigurationElementSorter sorter= new ConfigurationElementSorter() {
      public IConfigurationElement getConfigurationElement(Object object) {
        return ((RulerColumnDescriptor) object).getConfigurationElement();
      }
    };
    Object[] array= descriptors.toArray();
    sorter.sort(array);
   
    Map descriptorsById= new HashMap();
    for (int i= 0; i < array.length; i++) {
      RulerColumnDescriptor desc= (RulerColumnDescriptor) array[i];
      descriptorsById.put(desc.getId(), desc);
View Full Code Here


     * Topological sort of the DAG defined by the plug-in dependencies
     * 1. TopoSort descriptors by plug-in dependency
     * 2. Insert into Directed Acyclic Graph
     * 3. TopoSort DAG: pick the source with the lowest gravity and remove from DAG
     */
    ConfigurationElementSorter sorter= new ConfigurationElementSorter() {
      public IConfigurationElement getConfigurationElement(Object object) {
        return ((RulerColumnDescriptor) object).getConfigurationElement();
      }
    };
    Object[] array= descriptors.toArray();
    sorter.sort(array);

    Map descriptorsById= new HashMap();
    for (int i= 0; i < array.length; i++) {
      RulerColumnDescriptor desc= (RulerColumnDescriptor) array[i];
      descriptorsById.put(desc.getId(), desc);
View Full Code Here

   */
  public PHPEditorTextHoverDescriptor[] getPHPEditorTextHoverDescriptors() {
    if (fPHPEditorTextHoverDescriptors == null) {
      fPHPEditorTextHoverDescriptors = PHPEditorTextHoverDescriptor
          .getContributedHovers();
      ConfigurationElementSorter sorter = new ConfigurationElementSorter() {
        /*
         * @seeorg.eclipse.ui.texteditor.ConfigurationElementSorter#
         * getConfigurationElement(java.lang.Object)
         */
        public IConfigurationElement getConfigurationElement(
            Object object) {
          return ((PHPEditorTextHoverDescriptor) object)
              .getConfigurationElement();
        }
      };
      sorter.sort(fPHPEditorTextHoverDescriptors);

      // Move Best Match hover to front
      for (int i = 0; i < fPHPEditorTextHoverDescriptors.length - 1; i++) {
        if (PreferenceConstants.ID_BESTMATCH_HOVER
            .equals(fPHPEditorTextHoverDescriptors[i].getId())) {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.texteditor.ConfigurationElementSorter$ConfigurationElementComparator

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.