From 454c03e66a16a6d733163e67e317fbf565b5cdbf Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Thu, 26 Mar 2015 14:32:47 -0230 Subject: ICE-6396 Move eclipse plugin to its own repo --- .../internal/IceClasspathVariableInitializer.java | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/IceClasspathVariableInitializer.java (limited to 'eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/IceClasspathVariableInitializer.java') diff --git a/eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/IceClasspathVariableInitializer.java b/eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/IceClasspathVariableInitializer.java deleted file mode 100644 index d454cb1e0ee..00000000000 --- a/eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/IceClasspathVariableInitializer.java +++ /dev/null @@ -1,44 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. -// -// This plug-in is provided to you under the terms and conditions -// of the Eclipse Public License Version 1.0 ("EPL"). A copy of -// the EPL is available at http://www.eclipse.org/legal/epl-v10.html. -// -// ********************************************************************** - -package com.zeroc.slice2javaplugin.internal; - -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.Path; -import org.eclipse.jdt.core.ClasspathVariableInitializer; -import org.eclipse.jdt.core.JavaCore; -import org.eclipse.jdt.core.JavaModelException; - -public class IceClasspathVariableInitializer extends ClasspathVariableInitializer -{ - private final static String VARIABLE_NAME = "ICE_JAR_HOME"; - - @Override - public void initialize(String variable) - { - if(variable.equals(VARIABLE_NAME)) - { - update(); - } - } - - public static void update() - { - IPath path = new Path(Configuration.getJarDir()); - try - { - JavaCore.setClasspathVariable(VARIABLE_NAME, path, null); - } - catch(JavaModelException e) - { - e.printStackTrace(); - } - } -} \ No newline at end of file -- cgit v1.2.3