/*
 * 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.
 */
package com.intellij.openapi.module;

import com.intellij.ide.util.projectWizard.ModuleBuilder;
import com.intellij.openapi.project.ProjectBundle;
import com.intellij.openapi.util.IconLoader;
import org.jetbrains.annotations.NonNls;

import javax.swing.*;

/**
 * @author yole
 */
public abstract class WebModuleTypeBase<T extends ModuleBuilder> extends ModuleType<T> {
  @NonNls public static final String WEB_MODULE = "WEB_MODULE";

  private static final Icon WEB_MODULE_ICON = IconLoader.getIcon("/javaee/webModuleBig.png");

  public WebModuleTypeBase() {
    super(WEB_MODULE);
  }

  public String getName() {
    return ProjectBundle.message("module.web.title");
  }

  public String getDescription() {
    return ProjectBundle.message("module.web.description");
  }

  public Icon getBigIcon() {
    return WEB_MODULE_ICON;
  }

  public Icon getNodeIcon(boolean isOpened) {
    return getBigIcon();
  }
}

@@ -1057,20 +1057,16 @@
 al Icon 
-WEB_
 MODULE_I
@@ -1118,16 +1118,214 @@
 g.png%22);
+%0A  private static final Icon MODULE_NODE_ICON_OPEN = IconLoader.getIcon(%22/nodes/ModuleOpen.png%22);%0A  private static final Icon MODULE_NODE_ICON_CLOSED = IconLoader.getIcon(%22/nodes/ModuleClosed.png%22);
 %0A%0A  publ
@@ -1604,20 +1604,16 @@
  return 
-WEB_
 MODULE_I
@@ -1648,16 +1648,22 @@
 odeIcon(
+final 
 boolean 
@@ -1685,28 +1685,74 @@
  return 
-getBigIcon()
+isOpened ? MODULE_NODE_ICON_OPEN : MODULE_NODE_ICON_CLOSED
 ;%0A  %7D%0A%7D%0A

Correct node icons for web module