Author: scabanovich
Date: 2009-09-28 09:16:20 -0400 (Mon, 28 Sep 2009)
New Revision: 17780
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4815
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java 2009-09-28
13:12:32 UTC (rev 17779)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java 2009-09-28
13:16:20 UTC (rev 17780)
@@ -20,6 +20,7 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.ui.IEditorInput;
@@ -64,9 +65,11 @@
public static IPromptingProvider seamPromptingProvider;
static {
- Object o =
ModelFeatureFactory.getInstance().createFeatureInstance("org.jboss.tools.seam.internal.core.el.SeamPromptingProvider");
//$NON-NLS-1$
- if(o instanceof IPromptingProvider) {
- seamPromptingProvider = (IPromptingProvider)o;
+ if(Platform.getBundle("org.jboss.tools.seam.core") != null) { //$NON-NLS-1$
+ Object o =
ModelFeatureFactory.getInstance().createFeatureInstance("org.jboss.tools.seam.internal.core.el.SeamPromptingProvider");
//$NON-NLS-1$
+ if(o instanceof IPromptingProvider) {
+ seamPromptingProvider = (IPromptingProvider)o;
+ }
}
}
//JBIDE-1983, coused a memmory link