Author: koen.aers(a)jboss.com
Date: 2009-06-15 18:41:52 -0400 (Mon, 15 Jun 2009)
New Revision: 15963
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/META-INF/MANIFEST.MF
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/src/org/jboss/tools/flow/jpdl4/multipage/validator/Jpdl4Validator.java
Log:
Modified: trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/META-INF/MANIFEST.MF
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/META-INF/MANIFEST.MF 2009-06-15
22:40:41 UTC (rev 15962)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/META-INF/MANIFEST.MF 2009-06-15
22:41:52 UTC (rev 15963)
@@ -17,6 +17,7 @@
org.eclipse.ui.views.properties.tabbed;bundle-version="3.4.1",
org.jboss.tools.flow.common;bundle-version="1.0.0",
org.eclipse.gef;bundle-version="3.4.1",
- org.eclipse.wst.validation;bundle-version="1.2.6"
+ org.eclipse.wst.validation;bundle-version="1.2.6",
+ org.jboss.tools.jbpm.common;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/src/org/jboss/tools/flow/jpdl4/multipage/validator/Jpdl4Validator.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/src/org/jboss/tools/flow/jpdl4/multipage/validator/Jpdl4Validator.java 2009-06-15
22:40:41 UTC (rev 15962)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/src/org/jboss/tools/flow/jpdl4/multipage/validator/Jpdl4Validator.java 2009-06-15
22:41:52 UTC (rev 15963)
@@ -5,6 +5,10 @@
import org.eclipse.wst.validation.AbstractValidator;
import org.eclipse.wst.validation.ValidationResult;
import org.eclipse.wst.validation.ValidationState;
+import org.jboss.tools.flow.jpdl4.Activator;
+import org.jboss.tools.jbpm.Constants;
+import org.jboss.tools.jbpm.preferences.JbpmInstallation;
+import org.jboss.tools.jbpm.preferences.PreferencesManager;
public class Jpdl4Validator extends AbstractValidator {
@@ -14,6 +18,15 @@
ValidationState state,
IProgressMonitor monitor) {
System.out.println("validating...");
+ PreferencesManager manager =
PreferencesManager.getPreferencesManager(Activator.getDefault());
+ if (manager == null) return super.validate(resource, kind, state, monitor);
+ String jbpmName =
Activator.getDefault().getPluginPreferences().getString(Constants.JBPM_NAME);
+ if (jbpmName == null) return super.validate(resource, kind, state, monitor);
+ JbpmInstallation jbpmInstallation = manager.getJbpmInstallation(jbpmName);
+ if (jbpmInstallation == null) return super.validate(resource, kind, state, monitor);
+ String location = jbpmInstallation.location;
+ if (location == null) return super.validate(resource, kind, state, monitor);
+ System.out.println("location : " + location);
// Thread.currentThread().getContextClassLoader().
return super.validate(resource, kind, state, monitor);
}
Show replies by date