IDEA-26403: Maia 92​.​65 and 92​.​81 overwrite and destroy existing Grails run config...
[fedora-idea.git] / plugins / groovy / src / org / jetbrains / plugins / groovy / config / GroovyAwareModuleBuilder.java
blobb1e46f3994ea17748a7bb2696112fb3f0b6ee02b
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.jetbrains.plugins.groovy.config;
18 import com.intellij.ide.util.projectWizard.JavaModuleBuilder;
20 import javax.swing.*;
22 /**
23 * @author peter
25 public abstract class GroovyAwareModuleBuilder extends JavaModuleBuilder {
26 private final String myBuilderId;
27 private final String myPresentableName;
28 private final String myDescription;
29 private final Icon myBigIcon;
31 protected GroovyAwareModuleBuilder(String builderId, String presentableName, String description, Icon bigIcon) {
32 myBuilderId = builderId;
33 myPresentableName = presentableName;
34 myDescription = description;
35 myBigIcon = bigIcon;
38 @Override
39 public String getBuilderId() {
40 return myBuilderId;
43 @Override
44 public Icon getBigIcon() {
45 return myBigIcon;
48 @Override
49 public String getDescription() {
50 return myDescription;
53 @Override
54 public String getPresentableName() {
55 return myPresentableName;