From b56f14b8ffbbc076bace706cc51f323141588b0b Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 22 Nov 2009 18:55:49 +0000 Subject: [PATCH] remove dead classes --- .../plugins/groovy/config/GroovySDK.java | 75 ------------------- .../groovy/config/util/AbstractSDK.java | 30 -------- .../groovy/config/util/GroovySDKPointer.java | 66 ---------------- .../groovy/config/util/LibrarySDK.java | 26 ------- 4 files changed, 197 deletions(-) delete mode 100644 plugins/groovy/src/org/jetbrains/plugins/groovy/config/GroovySDK.java delete mode 100644 plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/AbstractSDK.java delete mode 100644 plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/GroovySDKPointer.java delete mode 100644 plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/LibrarySDK.java diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/config/GroovySDK.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/config/GroovySDK.java deleted file mode 100644 index b8a11a677de0..000000000000 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/config/GroovySDK.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2000-2009 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 org.jetbrains.plugins.groovy.config; - -import com.intellij.openapi.module.Module; -import com.intellij.openapi.project.Project; -import com.intellij.openapi.roots.libraries.Library; -import org.jetbrains.plugins.groovy.GroovyIcons; -import org.jetbrains.plugins.groovy.config.util.LibrarySDK; - -import javax.swing.*; - -/** - * @author ilyas - */ -public class GroovySDK implements LibrarySDK { - - protected Library myLibrary; - private final boolean myProjectLib; - protected String mySdkVersion; - private final Module myModule; - - public GroovySDK(final Library library, final Module module, final boolean isProjectLib) { - myModule = module; - myLibrary = library; - myProjectLib = isProjectLib; - mySdkVersion = GroovyConfigUtils.getInstance().getSDKLibVersion(library); - } - - public Module getModule() { - return myModule; - } - - public Project getProject() { - return myModule.getProject(); - } - - public Library getLibrary() { - return myLibrary; - } - - public String getSdkVersion() { - return mySdkVersion; - } - - public String getLibraryName() { - return myLibrary.getName(); - } - - public boolean isProjectLib() { - return myProjectLib; - } - - public String getPresentation() { - return " (Groovy version \"" + getSdkVersion() + "\")" + (isProjectLib() ? " [" + getModule().getProject().getName() + "]" : ""); - } - - public Icon getIcon() { - return GroovyIcons.GROOVY_SDK; - } -} diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/AbstractSDK.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/AbstractSDK.java deleted file mode 100644 index 1ee93177be11..000000000000 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/AbstractSDK.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2000-2009 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 org.jetbrains.plugins.groovy.config.util; - -/** - * @author ilyas - */ -public interface AbstractSDK { - - String getLibraryName(); - - boolean isProjectLib(); - - String getPresentation(); - -} diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/GroovySDKPointer.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/GroovySDKPointer.java deleted file mode 100644 index 3981aa13fd38..000000000000 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/GroovySDKPointer.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2000-2009 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 org.jetbrains.plugins.groovy.config.util; - -import org.jetbrains.annotations.NotNull; -import org.jetbrains.plugins.groovy.GroovyIcons; - -import javax.swing.*; - -/** - * Pointer to added but not registered Groovy SDK - * - * @author ilyas - */ -public class GroovySDKPointer implements AbstractSDK { - - private final String myGroovyLibraryName; - private final String myPathToLibrary; - private final String myVersion; - private final boolean myProjectLib; - - public GroovySDKPointer(@NotNull String name, @NotNull String path, String version, final boolean isProjectLib) { - myGroovyLibraryName = name; - myPathToLibrary = path; - myVersion = version; - myProjectLib = isProjectLib; - } - - public String getLibraryName() { - return myGroovyLibraryName; - } - - public boolean isProjectLib() { - return myProjectLib; - } - - public String getPresentation() { - return " (Groovy version \"" + getVersion() + "\")"; - } - - public String getPath() { - return myPathToLibrary; - } - - public Icon getIcon() { - return GroovyIcons.GROOVY_SDK; - } - - public String getVersion() { - return myVersion; - } -} diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/LibrarySDK.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/LibrarySDK.java deleted file mode 100644 index 464a553ec79d..000000000000 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/config/util/LibrarySDK.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright 2000-2009 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 org.jetbrains.plugins.groovy.config.util; - -import com.intellij.openapi.roots.libraries.Library; - -/** - * @author ilyas - */ -public interface LibrarySDK extends AbstractSDK{ - - Library getLibrary(); -}