diff --git a/platform/icons/src/modules/sourceRootFileLayer.png b/platform/icons/src/modules/sourceRootFileLayer.png new file mode 100644 index 000000000000..696179ff5791 Binary files /dev/null and b/platform/icons/src/modules/sourceRootFileLayer.png differ diff --git a/platform/icons/src/modules/sourceRootFileLayer@2x.png b/platform/icons/src/modules/sourceRootFileLayer@2x.png new file mode 100644 index 000000000000..bfeb35d76e30 Binary files /dev/null and b/platform/icons/src/modules/sourceRootFileLayer@2x.png differ diff --git a/platform/icons/src/modules/sourceRootFileLayer@2x_dark.png b/platform/icons/src/modules/sourceRootFileLayer@2x_dark.png new file mode 100644 index 000000000000..39222429315d Binary files /dev/null and b/platform/icons/src/modules/sourceRootFileLayer@2x_dark.png differ diff --git a/platform/icons/src/modules/sourceRootFileLayer_dark.png b/platform/icons/src/modules/sourceRootFileLayer_dark.png new file mode 100644 index 000000000000..4a68431efbfd Binary files /dev/null and b/platform/icons/src/modules/sourceRootFileLayer_dark.png differ diff --git a/platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/JavaSourceRootEditHandlerBase.java b/platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/JavaSourceRootEditHandlerBase.java index aafae0f15694..873c1f1ff60c 100644 --- a/platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/JavaSourceRootEditHandlerBase.java +++ b/platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/JavaSourceRootEditHandlerBase.java @@ -1,18 +1,4 @@ -/* - * Copyright 2000-2014 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. - */ +// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.roots.ui.configuration; import com.intellij.icons.AllIcons; @@ -45,6 +31,12 @@ public abstract class JavaSourceRootEditHandlerBase extends ModuleSourceRootEdit return properties.isForGeneratedSources() ? getGeneratedRootIcon() : getRootIcon(); } + @Nullable + @Override + public Icon getRootFileLayerIcon(@NotNull JavaSourceRootProperties properties) { + return AllIcons.Modules.SourceRootFileLayer; + } + @NotNull protected abstract Icon getGeneratedRootIcon(); diff --git a/platform/util/src/com/intellij/icons/AllIcons.java b/platform/util/src/com/intellij/icons/AllIcons.java index d790d5457306..625cd349c96b 100644 --- a/platform/util/src/com/intellij/icons/AllIcons.java +++ b/platform/util/src/com/intellij/icons/AllIcons.java @@ -1,16 +1,4 @@ -// Copyright 2000-2017 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. +// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.icons; import com.intellij.openapi.util.IconLoader; @@ -858,6 +846,7 @@ public class AllIcons { public static final Icon SetPackagePrefixRollover = IconLoader.getIcon("/modules/setPackagePrefixRollover.png"); // 9x9 public static final Icon SourceFolder = IconLoader.getIcon("/modules/sourceFolder.png"); // 16x16 public static final Icon SourceRoot = IconLoader.getIcon("/modules/sourceRoot.png"); // 16x16 + public static final Icon SourceRootFileLayer = IconLoader.getIcon("/modules/sourceRootFileLayer.png"); // 16x16 public static final Icon Sources = IconLoader.getIcon("/modules/sources.png"); // 16x16 public static final Icon Split = IconLoader.getIcon("/modules/split.png"); // 16x16 public static final Icon TestResourcesRoot = IconLoader.getIcon("/modules/testResourcesRoot.png"); // 16x16