CPP-11991 Mark source files in the project view using overlay icons

This commit is contained in:
Anton Makeev
2018-02-12 15:31:22 +01:00
parent 27056a1c1e
commit 1907632619
6 changed files with 9 additions and 28 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

@@ -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();
@@ -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