/*
 * Copyright 2000-2007 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.intellij.openapi.roots;

/**
 * Root types that can be queried from OrderEntry.
 * @see OrderEntry
 * @author dsl
 */
public enum OrderRootType {
  /**
   * Classpath.
   */
  CLASSES_AND_OUTPUT,

  /**
   * Classpath for compilation
   */
  COMPILATION_CLASSES,

  /**
   * Classpath without output directories for this module.
   */
  CLASSES,

  /**
   * Sources.
   */
  SOURCES,

  /**
   * JavaDoc paths.
   */
  JAVADOC,

  /**
   * External annotations path
   */
  ANNOTATIONS;

  public static final OrderRootType[] ALL_TYPES = {
    CLASSES, CLASSES_AND_OUTPUT, COMPILATION_CLASSES, SOURCES, JAVADOC, ANNOTATIONS
  };
}

@@ -735,369 +735,925 @@
 lic 
-enum OrderRootType %7B%0A  /**%0A   * Classpath.%0A   */%0A  CLASSES_AND_OUTPUT,%0A%0A  /**%0A   * Classpath for compilation%0A   */%0A  COMPILATION_CLASSES,%0A%0A  /**%0A   * Classpath without output directories for this module.%0A   */%0A  CLASSES,%0A%0A  /**%0A   * Sources.%0A   */%0A  SOURCES,%0A%0A  /**%0A   * JavaDoc paths.%0A   */%0A  JAVADOC,%0A%0A  /**%0A   * External annotations path%0A   */%0A  ANNOTATIONS;
+class OrderRootType %7B%0A  private String myName;%0A%0A  private OrderRootType(String name) %7B%0A    myName = name;%0A  %7D%0A%0A  /**%0A   * Classpath.%0A   */%0A  public static final OrderRootType CLASSES_AND_OUTPUT = new OrderRootType(%22CLASSES_AND_OUTPUT%22);%0A%0A  /**%0A   * Classpath for compilation%0A   */%0A  public static final OrderRootType COMPILATION_CLASSES = new OrderRootType(%22COMPILATION_CLASSES%22);%0A%0A  /**%0A   * Classpath without output directories for this module.%0A   */%0A  public static final OrderRootType CLASSES = new OrderRootType(%22CLASSES%22);%0A%0A  /**%0A   * Sources.%0A   */%0A  public static final OrderRootType SOURCES = new OrderRootType(%22SOURCES%22);%0A%0A  /**%0A   * JavaDoc paths.%0A   */%0A  public static final OrderRootType JAVADOC = new OrderRootType(%22JAVADOC%22);%0A%0A  /**%0A   * External annotations path%0A   */%0A  public static final OrderRootType ANNOTATIONS = new OrderRootType(%22ANNOTATIONS%22);%0A%0A  public String name() %7B%0A    return myName;%0A  %7D
 %0A%0A  

replace enum with class