summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-06-07 06:30:18 (EDT)
committerManik Kishore2012-06-12 04:26:26 (EDT)
commit3122576dd060ef4f35337e215d1d0e1bd8cea0f0 (patch)
treecef123d54e2f24176a96c0b73943273b71cc6f92
parent52e933e02b229ba795b972151905b127a924dff7 (diff)
downloadorg.eclipse.stardust.ide-3122576dd060ef4f35337e215d1d0e1bd8cea0f0.zip
org.eclipse.stardust.ide-3122576dd060ef4f35337e215d1d0e1bd8cea0f0.tar.gz
org.eclipse.stardust.ide-3122576dd060ef4f35337e215d1d0e1bd8cea0f0.tar.bz2
Jira-ID: CRNT-22390
Modeler: Scan Trigger with no Document Data access point specified should not be allowed. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@56902 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/triggerTypes/scan/ScanTriggerPropertyPage.java34
1 files changed, 29 insertions, 5 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/triggerTypes/scan/ScanTriggerPropertyPage.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/triggerTypes/scan/ScanTriggerPropertyPage.java
index a3e1a84..c9adbfc 100644
--- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/triggerTypes/scan/ScanTriggerPropertyPage.java
+++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/triggerTypes/scan/ScanTriggerPropertyPage.java
@@ -14,6 +14,7 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
@@ -25,10 +26,8 @@ import org.eclipse.stardust.engine.api.model.PredefinedConstants;
import org.eclipse.stardust.model.xpdl.carnot.AccessPointType;
import org.eclipse.stardust.model.xpdl.carnot.AttributeType;
import org.eclipse.stardust.model.xpdl.carnot.CarnotWorkflowModelFactory;
-import org.eclipse.stardust.model.xpdl.carnot.CarnotWorkflowModelPackage;
import org.eclipse.stardust.model.xpdl.carnot.DataType;
import org.eclipse.stardust.model.xpdl.carnot.DirectionType;
-import org.eclipse.stardust.model.xpdl.carnot.IExtensibleElement;
import org.eclipse.stardust.model.xpdl.carnot.IModelElement;
import org.eclipse.stardust.model.xpdl.carnot.IModelElementNodeSymbol;
import org.eclipse.stardust.model.xpdl.carnot.IModelParticipant;
@@ -43,8 +42,10 @@ import org.eclipse.stardust.modeling.common.ui.jface.utils.FormBuilder;
import org.eclipse.stardust.modeling.common.ui.jface.utils.LabeledText;
import org.eclipse.stardust.modeling.common.ui.jface.utils.LabeledViewer;
import org.eclipse.stardust.modeling.core.Diagram_Messages;
+import org.eclipse.stardust.modeling.core.editors.IValidationStatus;
import org.eclipse.stardust.modeling.core.editors.ui.CarnotPreferenceNode;
import org.eclipse.stardust.modeling.core.editors.ui.EObjectLabelProvider;
+import org.eclipse.stardust.modeling.core.editors.ui.validation.PageValidationManager;
import org.eclipse.stardust.modeling.core.properties.AbstractModelElementPropertyPage;
import org.eclipse.stardust.modeling.core.spi.ConfigurationElement;
import org.eclipse.stardust.modeling.core.utils.WidgetBindingManager;
@@ -69,7 +70,7 @@ public class ScanTriggerPropertyPage extends AbstractModelElementPropertyPage
private CarnotPreferenceNode triggerNode;
- private WidgetBindingManager wBndMgr = null;
+ private boolean pageValidationManagerSet = false;
public void loadFieldsFromElement(IModelElementNodeSymbol symbol, IModelElement element)
{
@@ -204,12 +205,12 @@ public class ScanTriggerPropertyPage extends AbstractModelElementPropertyPage
{
if (!trigger.getAccessPoint().isEmpty())
{
- //setTriggerValidationState(IQuickValidationStatus.OK);
+ setTriggerValidationState(IQuickValidationStatus.OK);
dataCombo.getLabel().setValidationStatus(IQuickValidationStatus.OK);
}
else
{
- //setTriggerValidationState(IQuickValidationStatus.ERRORS);
+ setTriggerValidationState(IQuickValidationStatus.ERRORS);
dataCombo.getLabel().setValidationStatus(IQuickValidationStatus.ERRORS);
}
}
@@ -236,5 +237,28 @@ public class ScanTriggerPropertyPage extends AbstractModelElementPropertyPage
PredefinedConstants.MANUAL_TRIGGER_PARTICIPANT_ATT, originalPerformer);
return super.performCancel();
}
+
+ public WidgetBindingManager getWidgetBindingManager()
+ {
+ if (pageValidationManagerSet == false)
+ {
+ pageValidationManagerSet = true;
+ WidgetBindingManager wBndMgr = super.getWidgetBindingManager();
+ PageValidationManager pm = new PageValidationManager(this)
+ {
+
+ @Override
+ public void onIssuesUpdated(EObject element,
+ IValidationStatus validationStatus)
+ {
+
+ }
+
+ };
+ Reflect.setFieldValue(wBndMgr, "vBndMgr", pm);
+ return wBndMgr;
+ }
+ return super.getWidgetBindingManager();
+ }
} \ No newline at end of file