Author: scabanovich
Date: 2007-08-24 08:33:31 -0400 (Fri, 24 Aug 2007)
New Revision: 3318
Removed:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/RedHatVariableInitializer.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/Preferences.xml
trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml
Log:
JBIDE-840
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/Preferences.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/Preferences.xml 2007-08-24 12:32:48 UTC (rev
3317)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/Preferences.xml 2007-08-24 12:33:31 UTC (rev
3318)
@@ -2,12 +2,6 @@
<XStudio ENTITY="SharableXStudio" NAME="XStudio"
SCOPE="project">
<Options ENTITY="SharableOptions" NAME="Options"
SCOPE="project">
<StrutsStudio ENTITY="SharableStrutsStudio" NAME="Struts Studio"
SCOPE="project">
- <Servlet24Libs ENTITY="SharableServlet24Libs"
- NAME="Servlet 2.4 Libraries" SCOPE="project"
libraries="STRUTSSTUDIO_LIB_HOME/servlet-2.4/jdbc2_0-stdext.jar;STRUTSSTUDIO_LIB_HOME/servlet-2.4/servlet-api.jar"/>
- <Servlet22Libs ENTITY="SharableServlet22Libs"
- NAME="Servlet 2.2 Libraries" SCOPE="project"
libraries="STRUTSSTUDIO_LIB_HOME/servlet-2.2/jdbc2_0-stdext.jar;STRUTSSTUDIO_LIB_HOME/servlet-2.2/servlet.jar"/>
- <Struts10Libs ENTITY="SharableStruts10Libs"
- NAME="Struts 1.0 Libraries" SCOPE="project"
libraries="STRUTSSTUDIO_LIB_HOME/struts-1.0/struts.jar"/>
<Verification ENTITY="SharableVerification"
NAME="Verification"
SCOPE="project" error_number_limit="unlimited"/>
<Running ENTITY="SharableRunning" NAME="Running"
SCOPE="project"
@@ -50,8 +44,6 @@
<link ENTITY="JSPLink" attribute="name"
refer-to="forward" tag="logic:forward"/>
<link ENTITY="JSPLink" attribute="forward"
refer-to="forward" tag="logic:redirect"/>
</link-recognizer>]]></LinkRecognizer>
- <Servlet23Libs ENTITY="SharableServlet23Libs"
- NAME="Servlet 2.3 Libraries" SCOPE="project"
libraries="STRUTSSTUDIO_LIB_HOME/servlet-2.3/jdbc2_0-stdext.jar;STRUTSSTUDIO_LIB_HOME/servlet-2.3/servlet.jar"/>
<Project ENTITY="SharableProject" NAME="Project"
SCOPE="project">
<StrutsSupport ENTITY="SharableStrutsSupport" NAME="Struts
Support" SCOPE="project">
<Struts11Support ENTITY="SharableStruts11Support"
@@ -83,8 +75,6 @@
NAME="Default Error Messages" SCOPE="project"
text="errors.required={0} is required.\n\nerrors.minlength={0} can not be less than
{1} characters.\nerrors.maxlength={0} can not be greater than {1}
characters.\nerrors.invalid={0} is invalid.\n \nerrors.byte={0} must be a
byte.\nerrors.short={0} must be a short.\nerrors.integer={0} must be an
integer.\nerrors.long={0} must be a long.\nerrors.float={0} must be a
float.\nerrors.double={0} must be a double.\n \nerrors.date={0} is not a
date.\nerrors.range={0} is not in the range {1} through {2}.\nerrors.creditcard={0} is an
invalid credit card number.\nerrors.email={0} is an invalid e-mail address.\n"/>
</ResourcesInsets>
</Automation>
- <Struts11Libs ENTITY="SharableStruts11Libs"
- NAME="Struts 1.1 Libraries" SCOPE="project"
libraries="STRUTSSTUDIO_LIB_HOME/struts-1.1/commons-beanutils.jar;STRUTSSTUDIO_LIB_HOME/struts-1.1/commons-collections.jar;STRUTSSTUDIO_LIB_HOME/struts-1.1/commons-digester.jar;STRUTSSTUDIO_LIB_HOME/struts-1.1/commons-fileupload.jar;STRUTSSTUDIO_LIB_HOME/struts-1.1/commons-lang.jar;STRUTSSTUDIO_LIB_HOME/struts-1.1/commons-logging.jar;STRUTSSTUDIO_LIB_HOME/struts-1.1/commons-validator.jar;STRUTSSTUDIO_LIB_HOME/struts-1.1/jakarta-oro.jar;STRUTSSTUDIO_LIB_HOME/struts-1.1/struts.jar;STRUTSSTUDIO_LIB_HOME/struts-1.1/struts-legacy.jar"/>
<Editors ENTITY="SharableEditors" NAME="Editors"
SCOPE="project"
selectSourceTab="no" tabWidth="4"
useRedHatEditors="yes">
<StrutsEditor ENTITY="SharableStrutsEditor" NAME="Web Flow
Diagram"
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml 2007-08-24 12:32:48 UTC (rev
3317)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml 2007-08-24 12:33:31 UTC (rev
3318)
@@ -26,10 +26,6 @@
<specialwizard
class="org.jboss.tools.jst.web.project.AddServletSupportWizard"
id="org.jboss.tools.jst.web.project.AddServletSupportWizard">
</specialwizard>
</extension>
- <extension point="org.eclipse.jdt.core.classpathVariableInitializer">
- <classpathVariableInitializer
class="org.jboss.tools.jst.web.RedHatVariableInitializer"
variable="REDHAT_LIB_HOME">
- </classpathVariableInitializer>
- </extension>
<extension point="org.jboss.tools.common.model.jspAdopt">
<jspAdopt
class="org.jboss.tools.jst.web.tld.model.handlers.JSPAdopt"/>
Deleted:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/RedHatVariableInitializer.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/RedHatVariableInitializer.java 2007-08-24
12:32:48 UTC (rev 3317)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/RedHatVariableInitializer.java 2007-08-24
12:33:31 UTC (rev 3318)
@@ -1,52 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jst.web;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.jdt.core.ClasspathVariableInitializer;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jface.preference.IPreferenceStore;
-
-import org.jboss.tools.common.model.util.EclipseResourceUtil;
-
-public class RedHatVariableInitializer extends ClasspathVariableInitializer {
- public static final String REDHAT_LIB_HOME = "REDHAT_LIB_HOME";
-
- public void initialize(String variable) {
- if (REDHAT_LIB_HOME.equals(variable)) {
- IPath ssLibPath = null;
- IPreferenceStore store = WebModelPlugin.getDefault().getPreferenceStore();
- if (store.contains(REDHAT_LIB_HOME) && !store.isDefault(REDHAT_LIB_HOME)) {
- String value = store.getString(REDHAT_LIB_HOME);
- ssLibPath = new Path(value);
- if (!ssLibPath.toFile().isDirectory()) ssLibPath = null;
- }
-
- if (ssLibPath == null)
- {
- IPath pluginPath = new
Path(EclipseResourceUtil.getInstallPath(WebModelPlugin.getDefault()));
- ssLibPath = pluginPath.removeLastSegments(3).append("lib");
- }
- try {
- JavaCore.setClasspathVariable(variable, ssLibPath, new NullProgressMonitor());
- } catch (JavaModelException ex) {
- WebModelPlugin.getPluginLog().logError(ex);
- }
- }
- }
-
- public static void save(IPreferenceStore store) {
- IPath value = JavaCore.getClasspathVariable(REDHAT_LIB_HOME);
- if (value != null) store.setValue(REDHAT_LIB_HOME, value.toString());
- }
-
-}