mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove dead classes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user