From c7a5a68eaa0717b92aab53a05f64e1e4925445d9 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 1 Mar 2016 16:26:34 +0100 Subject: [PATCH] to avoid API breakage, restore PathUIUtils class as deprecated --- .../LibrarySourceRootDetectorUtil.java | 2 +- .../roots/ui/configuration/PathUIUtils.java | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/PathUIUtils.java diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LibrarySourceRootDetectorUtil.java b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LibrarySourceRootDetectorUtil.java index 6c310c35dc71..e7b9dc016648 100644 --- a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LibrarySourceRootDetectorUtil.java +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LibrarySourceRootDetectorUtil.java @@ -37,7 +37,7 @@ import java.util.List; public class LibrarySourceRootDetectorUtil { public static ExtensionPointName JAVA_SOURCE_ROOT_DETECTOR = ExtensionPointName.create("com.intellij.library.javaSourceRootDetector"); - private LibrarySourceRootDetectorUtil() { + protected LibrarySourceRootDetectorUtil() { } /** diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/PathUIUtils.java b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/PathUIUtils.java new file mode 100644 index 000000000000..27d947963e5b --- /dev/null +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/PathUIUtils.java @@ -0,0 +1,26 @@ +/* + * Copyright 2000-2016 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.ui.configuration; + +import com.intellij.openapi.roots.libraries.ui.RootDetector; + +/** + * @deprecated please use {@link LibrarySourceRootDetectorUtil} directly + */ +public class PathUIUtils extends LibrarySourceRootDetectorUtil { + public static final RootDetector JAVA_SOURCE_ROOT_DETECTOR = new LibraryJavaSourceRootDetector(); + +}