Inline to anonymous class works only for java classes
[fedora-idea.git] / plugins / groovy / src / org / jetbrains / plugins / groovy / config / util / GroovySDKPointer.java
blob3981aa13fd3878ce2e7bb6c498df5b8b5fb6bb37
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.
17 package org.jetbrains.plugins.groovy.config.util;
19 import org.jetbrains.annotations.NotNull;
20 import org.jetbrains.plugins.groovy.GroovyIcons;
22 import javax.swing.*;
24 /**
25 * Pointer to added but not registered Groovy SDK
27 * @author ilyas
29 public class GroovySDKPointer implements AbstractSDK {
31 private final String myGroovyLibraryName;
32 private final String myPathToLibrary;
33 private final String myVersion;
34 private final boolean myProjectLib;
36 public GroovySDKPointer(@NotNull String name, @NotNull String path, String version, final boolean isProjectLib) {
37 myGroovyLibraryName = name;
38 myPathToLibrary = path;
39 myVersion = version;
40 myProjectLib = isProjectLib;
43 public String getLibraryName() {
44 return myGroovyLibraryName;
47 public boolean isProjectLib() {
48 return myProjectLib;
51 public String getPresentation() {
52 return " (Groovy version \"" + getVersion() + "\")";
55 public String getPath() {
56 return myPathToLibrary;
59 public Icon getIcon() {
60 return GroovyIcons.GROOVY_SDK;
63 public String getVersion() {
64 return myVersion;