Author: akazakov
Date: 2009-05-18 12:58:19 -0400 (Mon, 18 May 2009)
New Revision: 15332
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java 2009-05-18
16:50:43 UTC (rev 15331)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java 2009-05-18
16:58:19 UTC (rev 15332)
@@ -10,31 +10,16 @@
******************************************************************************/
package org.jboss.tools.jst.web;
-import java.io.File;
import java.util.Iterator;
import java.util.Properties;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationType;
import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.jdt.launching.IVMInstall;
-import org.eclipse.jdt.launching.JavaRuntime;
-import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.IRuntimeType;
-import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
-import org.eclipse.wst.server.core.IServer;
-import org.eclipse.wst.server.core.IServerType;
-import org.eclipse.wst.server.core.IServerWorkingCopy;
-import org.eclipse.wst.server.core.ServerCore;
-import org.eclipse.wst.server.core.ServerUtil;
-import org.eclipse.wst.server.core.internal.RuntimeWorkingCopy;
import org.jboss.tools.common.log.BaseUIPlugin;
import org.jboss.tools.common.log.IPluginLog;
import org.jboss.tools.common.model.XModel;
@@ -131,5 +116,4 @@
public static IPluginLog getPluginLog() {
return getDefault();
}
-
}
\ No newline at end of file
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java 2009-05-18
16:50:43 UTC (rev 15331)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java 2009-05-18
16:58:19 UTC (rev 15332)
@@ -40,6 +40,7 @@
private Map<Region, Set<Var>> vars = new HashMap<Region,
Set<Var>>();
private Map<Region, Map<String, INameSpace>> nameSpaces = new
HashMap<Region, Map<String, INameSpace>>();
private Set<Var> allVars = new HashSet<Var>();
+ private IResourceBundle[] bundles;
/*
* (non-Javadoc)
@@ -106,11 +107,18 @@
* @see org.jboss.tools.common.kb.text.PageContext#getResourceBundles()
*/
public IResourceBundle[] getResourceBundles() {
- // TODO
- return null;
+ return bundles;
}
/**
+ * Sets resource bundles
+ * @param bundles
+ */
+ public void setResourceBundles(IResourceBundle[] bundles) {
+ this.bundles = bundles;
+ }
+
+ /**
* @return the libs
*/
public ITagLibrary[] getLibs() {