Remove deprecated icons in AllIcons.Modules

GitOrigin-RevId: c3d2acd2fe562039ae0fa39fa3a5ba568934a3a5
This commit is contained in:
Sergey Malenkov
2020-01-21 22:18:01 +03:00
committed by intellij-monorepo-bot
parent b98e3b910f
commit 7d10769f95
51 changed files with 29 additions and 242 deletions

View File

@@ -1,4 +1,4 @@
// 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.
// Copyright 2000-2020 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.packaging.impl.elements
import com.intellij.icons.AllIcons
@@ -18,8 +18,8 @@ class ProductionModuleSourceElementType private constructor() : ModuleElementTyp
override fun createElement(project: Project, pointer: ModulePointer) = ProductionModuleSourcePackagingElement(project, pointer)
override fun createEmpty(project: Project) = ProductionModuleSourcePackagingElement(project)
override fun getCreateElementIcon(): Icon = AllIcons.Modules.SourceFolder
override fun getElementIcon(module: Module?): Icon = AllIcons.Modules.SourceFolder
override fun getCreateElementIcon(): Icon = AllIcons.Nodes.Package
override fun getElementIcon(module: Module?): Icon = AllIcons.Nodes.Package
override fun getElementText(moduleName: String) = CompilerBundle.message("node.text.0.module.sources", moduleName)
companion object {

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2011 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-2020 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.packaging.impl.elements;
import com.intellij.icons.AllIcons;
@@ -47,12 +33,12 @@ public class TestModuleOutputElementType extends ModuleOutputElementTypeBase<Tes
@Override
public Icon getCreateElementIcon() {
return AllIcons.Modules.TestSourceFolder;
return AllIcons.Nodes.TestSourceFolder;
}
@Override
public Icon getElementIcon(@Nullable Module module) {
return AllIcons.Modules.TestSourceFolder;
return AllIcons.Nodes.TestSourceFolder;
}
@NotNull