From 2a777947b2ee7e9a64ff29b09abf9e16bf73df15 Mon Sep 17 00:00:00 2001 From: nik Date: Tue, 3 Apr 2012 10:12:33 +0400 Subject: [PATCH] library root detection: allow to select root type if it it cannot be determined unambiguously (IDEA-83635) - added missing file --- .../roots/libraries/LibraryRootType.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 platform/lang-impl/src/com/intellij/openapi/roots/libraries/LibraryRootType.java diff --git a/platform/lang-impl/src/com/intellij/openapi/roots/libraries/LibraryRootType.java b/platform/lang-impl/src/com/intellij/openapi/roots/libraries/LibraryRootType.java new file mode 100644 index 000000000000..caa51c53471d --- /dev/null +++ b/platform/lang-impl/src/com/intellij/openapi/roots/libraries/LibraryRootType.java @@ -0,0 +1,41 @@ +/* + * Copyright 2000-2012 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.libraries; + +import com.intellij.openapi.roots.OrderRootType; +import org.jetbrains.annotations.NotNull; + +/** + * @author nik + */ +public class LibraryRootType { + private final OrderRootType myType; + private final boolean myJarDirectory; + + public LibraryRootType(@NotNull OrderRootType type, boolean jarDirectory) { + myType = type; + myJarDirectory = jarDirectory; + } + + @NotNull + public OrderRootType getType() { + return myType; + } + + public boolean isJarDirectory() { + return myJarDirectory; + } +}