Author: scabanovich
Date: 2007-08-24 08:32:48 -0400 (Fri, 24 Aug 2007)
New Revision: 3317
Removed:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/StrutsStudioVariableInitializer.java
Modified:
trunk/struts/plugins/org.jboss.tools.struts/Preferences.xml
trunk/struts/plugins/org.jboss.tools.struts/plugin.xml
Log:
JBIDE-840
Modified: trunk/struts/plugins/org.jboss.tools.struts/Preferences.xml
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/Preferences.xml 2007-08-24 12:31:49 UTC
(rev 3316)
+++ trunk/struts/plugins/org.jboss.tools.struts/Preferences.xml 2007-08-24 12:32:48 UTC
(rev 3317)
@@ -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"
@@ -43,8 +37,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"
@@ -76,8 +68,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/struts/plugins/org.jboss.tools.struts/plugin.xml
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2007-08-24 12:31:49 UTC (rev
3316)
+++ trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2007-08-24 12:32:48 UTC (rev
3317)
@@ -22,10 +22,6 @@
<specialwizard
class="org.jboss.tools.struts.webprj.model.helpers.sync.SortFileSystems"
id="org.jboss.tools.struts.webprj.model.helpers.sync.SortFileSystems">
</specialwizard>
</extension>
- <extension point="org.eclipse.jdt.core.classpathVariableInitializer">
- <classpathVariableInitializer
class="org.jboss.tools.struts.StrutsStudioVariableInitializer" variable="
STRUTSSTUDIO_LIB_HOME">
- </classpathVariableInitializer>
- </extension>
<extension id="strutsnature"
point="org.eclipse.core.resources.natures">
<runtime>
<run class="org.jboss.tools.struts.StrutsProject">
Deleted:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/StrutsStudioVariableInitializer.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/StrutsStudioVariableInitializer.java 2007-08-24
12:31:49 UTC (rev 3316)
+++
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/StrutsStudioVariableInitializer.java 2007-08-24
12:32:48 UTC (rev 3317)
@@ -1,60 +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.struts;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-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.ClassLoaderUtil;
-import org.jboss.tools.jst.web.WebModelPlugin;
-
-public class StrutsStudioVariableInitializer extends ClasspathVariableInitializer {
- public static final String STRUTSSTUDIO_LIB_HOME = "STRUTSSTUDIO_LIB_HOME";
-
- public void initialize(String variable)
- {
- if (STRUTSSTUDIO_LIB_HOME.equals(variable) /*&&
JavaCore.getClasspathVariable(variable) == null*/)
- {
- ClassLoaderUtil.init();
- IPath ssLibPath = null;
- IPreferenceStore store = StrutsModelPlugin.getDefault().getPreferenceStore();
- if (store.contains(STRUTSSTUDIO_LIB_HOME) &&
!store.isDefault(STRUTSSTUDIO_LIB_HOME)) {
- String value = store.getString(STRUTSSTUDIO_LIB_HOME);
- ssLibPath = new Path(value);
- if (!ssLibPath.toFile().isDirectory()) ssLibPath = null;
- }
-
- if (ssLibPath == null) {
- IPath pluginPath = WebModelPlugin.getTemplateStatePath();
-// new
Path(EclipseResourceUtil.getInstallPath(Platform.getBundle("org.jboss.tools.common.projecttemplates")));
- //ssLibPath = pluginPath.removeLastSegments(3).append("lib");
- ssLibPath = pluginPath.append("lib");
- }
-
- try {
- JavaCore.setClasspathVariable(variable, ssLibPath, new NullProgressMonitor());
- } catch (JavaModelException ex) {
- StrutsModelPlugin.getPluginLog().logError(ex);
- }
- }
- }
-
- public static void save(IPreferenceStore store)
- {
- IPath value = JavaCore.getClasspathVariable(STRUTSSTUDIO_LIB_HOME);
- if (value != null) store.setValue(STRUTSSTUDIO_LIB_HOME, value.toString());
- }
-}