commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gu...@apache.org
Subject svn commit: r945185 [37/42] - in /commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram: ./ META-INF/ bin/ icons/ icons/obj16/ icons/wizban/ src/ src/org/ src/org/apache/ src/org/apache/commons/ src/org/apache/com...
Date Mon, 17 May 2010 14:38:59 GMT
Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/providers/ScxmlViewProvider.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/providers/ScxmlViewProvider.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/providers/ScxmlViewProvider.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/providers/ScxmlViewProvider.java Mon May 17 14:38:45 2010
@@ -0,0 +1,903 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.providers;
+
+import org.apache.commons.scxml.diagram.edit.parts.*;
+import org.apache.commons.scxml.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.diagram.view.factories.*;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.diagram.core.providers.AbstractViewProvider;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class ScxmlViewProvider extends AbstractViewProvider {
+
+	/**
+	 * @generated
+	 */
+	protected Class getDiagramViewClass(IAdaptable semanticAdapter,
+			String diagramKind) {
+		EObject semanticElement = getSemanticElement(semanticAdapter);
+		if (ServiceTemplateEditPart.MODEL_ID.equals(diagramKind)
+				&& ScxmlVisualIDRegistry.getDiagramVisualID(semanticElement) != -1) {
+			return ServiceTemplateViewFactory.class;
+		}
+		return null;
+	}
+
+	/**
+	 * @generated
+	 */
+	protected Class getNodeViewClass(IAdaptable semanticAdapter,
+			View containerView, String semanticHint) {
+		if (containerView == null) {
+			return null;
+		}
+		IElementType elementType = getSemanticElementType(semanticAdapter);
+		EObject domainElement = getSemanticElement(semanticAdapter);
+		int visualID;
+		if (semanticHint == null) {
+			// Semantic hint is not specified. Can be a result of call from CanonicalEditPolicy.
+			// In this situation there should be NO elementType, visualID will be determined
+			// by VisualIDRegistry.getNodeVisualID() for domainElement.
+			if (elementType != null || domainElement == null) {
+				return null;
+			}
+			visualID = ScxmlVisualIDRegistry.getNodeVisualID(containerView,
+					domainElement);
+		} else {
+			visualID = ScxmlVisualIDRegistry.getVisualID(semanticHint);
+			if (elementType != null) {
+				// Semantic hint is specified together with element type.
+				// Both parameters should describe exactly the same diagram element.
+				// In addition we check that visualID returned by VisualIDRegistry.getNodeVisualID() for
+				// domainElement (if specified) is the same as in element type.
+				if (!ScxmlElementTypes.isKnownElementType(elementType)
+						|| (!(elementType instanceof IHintedType))) {
+					return null; // foreign element type
+				}
+				String elementTypeHint = ((IHintedType) elementType)
+						.getSemanticHint();
+				if (!semanticHint.equals(elementTypeHint)) {
+					return null; // if semantic hint is specified it should be the same as in element type
+				}
+				if (domainElement != null
+						&& visualID != ScxmlVisualIDRegistry.getNodeVisualID(
+								containerView, domainElement)) {
+					return null; // visual id for node EClass should match visual id from element type
+				}
+			} else {
+				// Element type is not specified. Domain element should be present (except pure design elements).
+				// This method is called with EObjectAdapter as parameter from:
+				//   - ViewService.createNode(View container, EObject eObject, String type, PreferencesHint preferencesHint) 
+				//   - generated ViewFactory.decorateView() for parent element
+				if (!ServiceTemplateEditPart.MODEL_ID
+						.equals(ScxmlVisualIDRegistry.getModelID(containerView))) {
+					return null; // foreign diagram
+				}
+				switch (visualID) {
+				case StateEditPart.VISUAL_ID:
+				case DataModelEditPart.VISUAL_ID:
+				case OnEntryEditPart.VISUAL_ID:
+				case IfEditPart.VISUAL_ID:
+				case ElseIfEditPart.VISUAL_ID:
+				case ElseEditPart.VISUAL_ID:
+				case AssignEditPart.VISUAL_ID:
+				case RaiseEditPart.VISUAL_ID:
+				case LogEditPart.VISUAL_ID:
+				case ValidateEditPart.VISUAL_ID:
+				case CancelEditPart.VISUAL_ID:
+				case SendEditPart.VISUAL_ID:
+				case ParamEditPart.VISUAL_ID:
+				case ContentEditPart.VISUAL_ID:
+				case Script2EditPart.VISUAL_ID:
+				case OnExitEditPart.VISUAL_ID:
+				case InvokeEditPart.VISUAL_ID:
+				case FinalizeEditPart.VISUAL_ID:
+				case InitialState2EditPart.VISUAL_ID:
+				case HistoryStateEditPart.VISUAL_ID:
+				case Parallel2EditPart.VISUAL_ID:
+				case AnchorEditPart.VISUAL_ID:
+				case FinalState2EditPart.VISUAL_ID:
+				case DonedataEditPart.VISUAL_ID:
+				case DataEditPart.VISUAL_ID:
+				case InitialStateEditPart.VISUAL_ID:
+				case ScriptEditPart.VISUAL_ID:
+				case ParallelEditPart.VISUAL_ID:
+				case FinalStateEditPart.VISUAL_ID:
+				case Content2EditPart.VISUAL_ID:
+				case Param2EditPart.VISUAL_ID:
+				case If2EditPart.VISUAL_ID:
+				case Assign2EditPart.VISUAL_ID:
+				case Raise2EditPart.VISUAL_ID:
+				case Log2EditPart.VISUAL_ID:
+				case Validate2EditPart.VISUAL_ID:
+				case Cancel2EditPart.VISUAL_ID:
+				case Param3EditPart.VISUAL_ID:
+				case Send2EditPart.VISUAL_ID:
+				case Script3EditPart.VISUAL_ID:
+				case Param4EditPart.VISUAL_ID:
+				case Content3EditPart.VISUAL_ID:
+				case HistoryState2EditPart.VISUAL_ID:
+				case Parallel3EditPart.VISUAL_ID:
+				case OnEntry2EditPart.VISUAL_ID:
+				case OnExit2EditPart.VISUAL_ID:
+				case State2EditPart.VISUAL_ID:
+				case Anchor2EditPart.VISUAL_ID:
+				case Param5EditPart.VISUAL_ID:
+				case Content4EditPart.VISUAL_ID:
+				case OnEntry3EditPart.VISUAL_ID:
+				case OnExit3EditPart.VISUAL_ID:
+				case State3EditPart.VISUAL_ID:
+				case Content5EditPart.VISUAL_ID:
+					if (domainElement == null
+							|| visualID != ScxmlVisualIDRegistry
+									.getNodeVisualID(containerView,
+											domainElement)) {
+						return null; // visual id in semantic hint should match visual id for domain element
+					}
+					break;
+				case StateIdEditPart.VISUAL_ID:
+				case StateStateCompartmentEditPart.VISUAL_ID:
+					if (StateEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabelEditPart.VISUAL_ID:
+					if (InitialStateEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel2EditPart.VISUAL_ID:
+					if (ScriptEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ParallelIdEditPart.VISUAL_ID:
+				case ParallelParallelCompartment3EditPart.VISUAL_ID:
+					if (ParallelEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case DataModelSchemaEditPart.VISUAL_ID:
+				case DataModelDataModelCompartmentEditPart.VISUAL_ID:
+					if (DataModelEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case FinalStateIdEditPart.VISUAL_ID:
+				case FinalStateFinalStateCompartment2EditPart.VISUAL_ID:
+					if (FinalStateEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel3EditPart.VISUAL_ID:
+				case OnEntryOnEntryCompartmentEditPart.VISUAL_ID:
+					if (OnEntryEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case IfCondEditPart.VISUAL_ID:
+				case IfIfCompartmentEditPart.VISUAL_ID:
+					if (IfEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ElseIfCondEditPart.VISUAL_ID:
+					if (ElseIfEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel4EditPart.VISUAL_ID:
+					if (ElseEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case AssignDataidEditPart.VISUAL_ID:
+				case AssignExprEditPart.VISUAL_ID:
+					if (AssignEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case RaiseEventEditPart.VISUAL_ID:
+					if (RaiseEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case LogExprEditPart.VISUAL_ID:
+					if (LogEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ValidateSchemaEditPart.VISUAL_ID:
+					if (ValidateEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case CancelSendidEditPart.VISUAL_ID:
+					if (CancelEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case SendEventEditPart.VISUAL_ID:
+				case SendSendCompartmentEditPart.VISUAL_ID:
+					if (SendEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ParamNameEditPart.VISUAL_ID:
+					if (ParamEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ContentContentCompartmentEditPart.VISUAL_ID:
+					if (ContentEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ContentContentCompartment2EditPart.VISUAL_ID:
+					if (Content2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ParamName2EditPart.VISUAL_ID:
+					if (Param2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel5EditPart.VISUAL_ID:
+					if (Script2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel6EditPart.VISUAL_ID:
+				case OnExitOnExitCompartmentEditPart.VISUAL_ID:
+					if (OnExitEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case IfCond2EditPart.VISUAL_ID:
+				case IfIfCompartment2EditPart.VISUAL_ID:
+					if (If2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case AssignDataid2EditPart.VISUAL_ID:
+				case AssignExpr2EditPart.VISUAL_ID:
+					if (Assign2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case RaiseEvent2EditPart.VISUAL_ID:
+					if (Raise2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case LogExpr2EditPart.VISUAL_ID:
+					if (Log2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ValidateSchema2EditPart.VISUAL_ID:
+					if (Validate2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case CancelSendid2EditPart.VISUAL_ID:
+					if (Cancel2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ParamName3EditPart.VISUAL_ID:
+					if (Param3EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case SendEvent2EditPart.VISUAL_ID:
+				case SendSendCompartment2EditPart.VISUAL_ID:
+					if (Send2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel7EditPart.VISUAL_ID:
+					if (Script3EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case InvokeTypeEditPart.VISUAL_ID:
+				case InvokeInvokeCompartmentEditPart.VISUAL_ID:
+					if (InvokeEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel8EditPart.VISUAL_ID:
+					if (FinalizeEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ParamName4EditPart.VISUAL_ID:
+					if (Param4EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ContentContentCompartment3EditPart.VISUAL_ID:
+					if (Content3EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel9EditPart.VISUAL_ID:
+					if (InitialState2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case HistoryStateIdEditPart.VISUAL_ID:
+					if (HistoryStateEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ParallelId2EditPart.VISUAL_ID:
+				case ParallelParallelCompartmentEditPart.VISUAL_ID:
+					if (Parallel2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case HistoryStateId2EditPart.VISUAL_ID:
+					if (HistoryState2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case AnchorTypeEditPart.VISUAL_ID:
+					if (AnchorEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ParallelId3EditPart.VISUAL_ID:
+				case ParallelParallelCompartment2EditPart.VISUAL_ID:
+					if (Parallel3EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel10EditPart.VISUAL_ID:
+				case OnEntryOnEntryCompartment2EditPart.VISUAL_ID:
+					if (OnEntry2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel11EditPart.VISUAL_ID:
+				case OnExitOnExitCompartment2EditPart.VISUAL_ID:
+					if (OnExit2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case StateId2EditPart.VISUAL_ID:
+				case StateStateCompartment2EditPart.VISUAL_ID:
+					if (State2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case AnchorType2EditPart.VISUAL_ID:
+					if (Anchor2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case FinalStateId2EditPart.VISUAL_ID:
+				case FinalStateFinalStateCompartmentEditPart.VISUAL_ID:
+					if (FinalState2EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel12EditPart.VISUAL_ID:
+				case DonedataDonedataCompartmentEditPart.VISUAL_ID:
+					if (DonedataEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ParamName5EditPart.VISUAL_ID:
+					if (Param5EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ContentContentCompartment4EditPart.VISUAL_ID:
+					if (Content4EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel13EditPart.VISUAL_ID:
+				case OnEntryOnEntryCompartment3EditPart.VISUAL_ID:
+					if (OnEntry3EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case WrappingLabel14EditPart.VISUAL_ID:
+				case OnExitOnExitCompartment3EditPart.VISUAL_ID:
+					if (OnExit3EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case StateId3EditPart.VISUAL_ID:
+				case StateStateCompartment3EditPart.VISUAL_ID:
+					if (State3EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case DataIdEditPart.VISUAL_ID:
+				case DataDataCompartmentEditPart.VISUAL_ID:
+					if (DataEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case ContentContentCompartment5EditPart.VISUAL_ID:
+					if (Content5EditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				case TranslationEventEditPart.VISUAL_ID:
+					if (TranslationEditPart.VISUAL_ID != ScxmlVisualIDRegistry
+							.getVisualID(containerView)
+							|| containerView.getElement() != domainElement) {
+						return null; // wrong container
+					}
+					break;
+				default:
+					return null;
+				}
+			}
+		}
+		return getNodeViewClass(containerView, visualID);
+	}
+
+	/**
+	 * @generated
+	 */
+	protected Class getNodeViewClass(View containerView, int visualID) {
+		if (containerView == null
+				|| !ScxmlVisualIDRegistry
+						.canCreateNode(containerView, visualID)) {
+			return null;
+		}
+		switch (visualID) {
+		case StateEditPart.VISUAL_ID:
+			return StateViewFactory.class;
+		case StateIdEditPart.VISUAL_ID:
+			return StateIdViewFactory.class;
+		case InitialStateEditPart.VISUAL_ID:
+			return InitialStateViewFactory.class;
+		case WrappingLabelEditPart.VISUAL_ID:
+			return WrappingLabelViewFactory.class;
+		case ScriptEditPart.VISUAL_ID:
+			return ScriptViewFactory.class;
+		case WrappingLabel2EditPart.VISUAL_ID:
+			return WrappingLabel2ViewFactory.class;
+		case ParallelEditPart.VISUAL_ID:
+			return ParallelViewFactory.class;
+		case ParallelIdEditPart.VISUAL_ID:
+			return ParallelIdViewFactory.class;
+		case DataModelEditPart.VISUAL_ID:
+			return DataModelViewFactory.class;
+		case DataModelSchemaEditPart.VISUAL_ID:
+			return DataModelSchemaViewFactory.class;
+		case FinalStateEditPart.VISUAL_ID:
+			return FinalStateViewFactory.class;
+		case FinalStateIdEditPart.VISUAL_ID:
+			return FinalStateIdViewFactory.class;
+		case OnEntryEditPart.VISUAL_ID:
+			return OnEntryViewFactory.class;
+		case WrappingLabel3EditPart.VISUAL_ID:
+			return WrappingLabel3ViewFactory.class;
+		case IfEditPart.VISUAL_ID:
+			return IfViewFactory.class;
+		case IfCondEditPart.VISUAL_ID:
+			return IfCondViewFactory.class;
+		case ElseIfEditPart.VISUAL_ID:
+			return ElseIfViewFactory.class;
+		case ElseIfCondEditPart.VISUAL_ID:
+			return ElseIfCondViewFactory.class;
+		case ElseEditPart.VISUAL_ID:
+			return ElseViewFactory.class;
+		case WrappingLabel4EditPart.VISUAL_ID:
+			return WrappingLabel4ViewFactory.class;
+		case AssignEditPart.VISUAL_ID:
+			return AssignViewFactory.class;
+		case AssignDataidEditPart.VISUAL_ID:
+			return AssignDataidViewFactory.class;
+		case AssignExprEditPart.VISUAL_ID:
+			return AssignExprViewFactory.class;
+		case RaiseEditPart.VISUAL_ID:
+			return RaiseViewFactory.class;
+		case RaiseEventEditPart.VISUAL_ID:
+			return RaiseEventViewFactory.class;
+		case LogEditPart.VISUAL_ID:
+			return LogViewFactory.class;
+		case LogExprEditPart.VISUAL_ID:
+			return LogExprViewFactory.class;
+		case ValidateEditPart.VISUAL_ID:
+			return ValidateViewFactory.class;
+		case ValidateSchemaEditPart.VISUAL_ID:
+			return ValidateSchemaViewFactory.class;
+		case CancelEditPart.VISUAL_ID:
+			return CancelViewFactory.class;
+		case CancelSendidEditPart.VISUAL_ID:
+			return CancelSendidViewFactory.class;
+		case SendEditPart.VISUAL_ID:
+			return SendViewFactory.class;
+		case SendEventEditPart.VISUAL_ID:
+			return SendEventViewFactory.class;
+		case ParamEditPart.VISUAL_ID:
+			return ParamViewFactory.class;
+		case ParamNameEditPart.VISUAL_ID:
+			return ParamNameViewFactory.class;
+		case ContentEditPart.VISUAL_ID:
+			return ContentViewFactory.class;
+		case Content2EditPart.VISUAL_ID:
+			return Content2ViewFactory.class;
+		case Param2EditPart.VISUAL_ID:
+			return Param2ViewFactory.class;
+		case ParamName2EditPart.VISUAL_ID:
+			return ParamName2ViewFactory.class;
+		case Script2EditPart.VISUAL_ID:
+			return Script2ViewFactory.class;
+		case WrappingLabel5EditPart.VISUAL_ID:
+			return WrappingLabel5ViewFactory.class;
+		case OnExitEditPart.VISUAL_ID:
+			return OnExitViewFactory.class;
+		case WrappingLabel6EditPart.VISUAL_ID:
+			return WrappingLabel6ViewFactory.class;
+		case If2EditPart.VISUAL_ID:
+			return If2ViewFactory.class;
+		case IfCond2EditPart.VISUAL_ID:
+			return IfCond2ViewFactory.class;
+		case Assign2EditPart.VISUAL_ID:
+			return Assign2ViewFactory.class;
+		case AssignDataid2EditPart.VISUAL_ID:
+			return AssignDataid2ViewFactory.class;
+		case AssignExpr2EditPart.VISUAL_ID:
+			return AssignExpr2ViewFactory.class;
+		case Raise2EditPart.VISUAL_ID:
+			return Raise2ViewFactory.class;
+		case RaiseEvent2EditPart.VISUAL_ID:
+			return RaiseEvent2ViewFactory.class;
+		case Log2EditPart.VISUAL_ID:
+			return Log2ViewFactory.class;
+		case LogExpr2EditPart.VISUAL_ID:
+			return LogExpr2ViewFactory.class;
+		case Validate2EditPart.VISUAL_ID:
+			return Validate2ViewFactory.class;
+		case ValidateSchema2EditPart.VISUAL_ID:
+			return ValidateSchema2ViewFactory.class;
+		case Cancel2EditPart.VISUAL_ID:
+			return Cancel2ViewFactory.class;
+		case CancelSendid2EditPart.VISUAL_ID:
+			return CancelSendid2ViewFactory.class;
+		case Param3EditPart.VISUAL_ID:
+			return Param3ViewFactory.class;
+		case ParamName3EditPart.VISUAL_ID:
+			return ParamName3ViewFactory.class;
+		case Send2EditPart.VISUAL_ID:
+			return Send2ViewFactory.class;
+		case SendEvent2EditPart.VISUAL_ID:
+			return SendEvent2ViewFactory.class;
+		case Script3EditPart.VISUAL_ID:
+			return Script3ViewFactory.class;
+		case WrappingLabel7EditPart.VISUAL_ID:
+			return WrappingLabel7ViewFactory.class;
+		case InvokeEditPart.VISUAL_ID:
+			return InvokeViewFactory.class;
+		case InvokeTypeEditPart.VISUAL_ID:
+			return InvokeTypeViewFactory.class;
+		case FinalizeEditPart.VISUAL_ID:
+			return FinalizeViewFactory.class;
+		case WrappingLabel8EditPart.VISUAL_ID:
+			return WrappingLabel8ViewFactory.class;
+		case Param4EditPart.VISUAL_ID:
+			return Param4ViewFactory.class;
+		case ParamName4EditPart.VISUAL_ID:
+			return ParamName4ViewFactory.class;
+		case Content3EditPart.VISUAL_ID:
+			return Content3ViewFactory.class;
+		case InitialState2EditPart.VISUAL_ID:
+			return InitialState2ViewFactory.class;
+		case WrappingLabel9EditPart.VISUAL_ID:
+			return WrappingLabel9ViewFactory.class;
+		case HistoryStateEditPart.VISUAL_ID:
+			return HistoryStateViewFactory.class;
+		case HistoryStateIdEditPart.VISUAL_ID:
+			return HistoryStateIdViewFactory.class;
+		case Parallel2EditPart.VISUAL_ID:
+			return Parallel2ViewFactory.class;
+		case ParallelId2EditPart.VISUAL_ID:
+			return ParallelId2ViewFactory.class;
+		case HistoryState2EditPart.VISUAL_ID:
+			return HistoryState2ViewFactory.class;
+		case HistoryStateId2EditPart.VISUAL_ID:
+			return HistoryStateId2ViewFactory.class;
+		case AnchorEditPart.VISUAL_ID:
+			return AnchorViewFactory.class;
+		case AnchorTypeEditPart.VISUAL_ID:
+			return AnchorTypeViewFactory.class;
+		case Parallel3EditPart.VISUAL_ID:
+			return Parallel3ViewFactory.class;
+		case ParallelId3EditPart.VISUAL_ID:
+			return ParallelId3ViewFactory.class;
+		case OnEntry2EditPart.VISUAL_ID:
+			return OnEntry2ViewFactory.class;
+		case WrappingLabel10EditPart.VISUAL_ID:
+			return WrappingLabel10ViewFactory.class;
+		case OnExit2EditPart.VISUAL_ID:
+			return OnExit2ViewFactory.class;
+		case WrappingLabel11EditPart.VISUAL_ID:
+			return WrappingLabel11ViewFactory.class;
+		case State2EditPart.VISUAL_ID:
+			return State2ViewFactory.class;
+		case StateId2EditPart.VISUAL_ID:
+			return StateId2ViewFactory.class;
+		case Anchor2EditPart.VISUAL_ID:
+			return Anchor2ViewFactory.class;
+		case AnchorType2EditPart.VISUAL_ID:
+			return AnchorType2ViewFactory.class;
+		case FinalState2EditPart.VISUAL_ID:
+			return FinalState2ViewFactory.class;
+		case FinalStateId2EditPart.VISUAL_ID:
+			return FinalStateId2ViewFactory.class;
+		case DonedataEditPart.VISUAL_ID:
+			return DonedataViewFactory.class;
+		case WrappingLabel12EditPart.VISUAL_ID:
+			return WrappingLabel12ViewFactory.class;
+		case Param5EditPart.VISUAL_ID:
+			return Param5ViewFactory.class;
+		case ParamName5EditPart.VISUAL_ID:
+			return ParamName5ViewFactory.class;
+		case Content4EditPart.VISUAL_ID:
+			return Content4ViewFactory.class;
+		case OnEntry3EditPart.VISUAL_ID:
+			return OnEntry3ViewFactory.class;
+		case WrappingLabel13EditPart.VISUAL_ID:
+			return WrappingLabel13ViewFactory.class;
+		case OnExit3EditPart.VISUAL_ID:
+			return OnExit3ViewFactory.class;
+		case WrappingLabel14EditPart.VISUAL_ID:
+			return WrappingLabel14ViewFactory.class;
+		case State3EditPart.VISUAL_ID:
+			return State3ViewFactory.class;
+		case StateId3EditPart.VISUAL_ID:
+			return StateId3ViewFactory.class;
+		case DataEditPart.VISUAL_ID:
+			return DataViewFactory.class;
+		case DataIdEditPart.VISUAL_ID:
+			return DataIdViewFactory.class;
+		case Content5EditPart.VISUAL_ID:
+			return Content5ViewFactory.class;
+		case StateStateCompartmentEditPart.VISUAL_ID:
+			return StateStateCompartmentViewFactory.class;
+		case OnEntryOnEntryCompartmentEditPart.VISUAL_ID:
+			return OnEntryOnEntryCompartmentViewFactory.class;
+		case IfIfCompartmentEditPart.VISUAL_ID:
+			return IfIfCompartmentViewFactory.class;
+		case SendSendCompartmentEditPart.VISUAL_ID:
+			return SendSendCompartmentViewFactory.class;
+		case ContentContentCompartmentEditPart.VISUAL_ID:
+			return ContentContentCompartmentViewFactory.class;
+		case ContentContentCompartment2EditPart.VISUAL_ID:
+			return ContentContentCompartment2ViewFactory.class;
+		case OnExitOnExitCompartmentEditPart.VISUAL_ID:
+			return OnExitOnExitCompartmentViewFactory.class;
+		case IfIfCompartment2EditPart.VISUAL_ID:
+			return IfIfCompartment2ViewFactory.class;
+		case SendSendCompartment2EditPart.VISUAL_ID:
+			return SendSendCompartment2ViewFactory.class;
+		case InvokeInvokeCompartmentEditPart.VISUAL_ID:
+			return InvokeInvokeCompartmentViewFactory.class;
+		case ContentContentCompartment3EditPart.VISUAL_ID:
+			return ContentContentCompartment3ViewFactory.class;
+		case ParallelParallelCompartmentEditPart.VISUAL_ID:
+			return ParallelParallelCompartmentViewFactory.class;
+		case ParallelParallelCompartment2EditPart.VISUAL_ID:
+			return ParallelParallelCompartment2ViewFactory.class;
+		case OnEntryOnEntryCompartment2EditPart.VISUAL_ID:
+			return OnEntryOnEntryCompartment2ViewFactory.class;
+		case OnExitOnExitCompartment2EditPart.VISUAL_ID:
+			return OnExitOnExitCompartment2ViewFactory.class;
+		case StateStateCompartment2EditPart.VISUAL_ID:
+			return StateStateCompartment2ViewFactory.class;
+		case FinalStateFinalStateCompartmentEditPart.VISUAL_ID:
+			return FinalStateFinalStateCompartmentViewFactory.class;
+		case DonedataDonedataCompartmentEditPart.VISUAL_ID:
+			return DonedataDonedataCompartmentViewFactory.class;
+		case ContentContentCompartment4EditPart.VISUAL_ID:
+			return ContentContentCompartment4ViewFactory.class;
+		case OnEntryOnEntryCompartment3EditPart.VISUAL_ID:
+			return OnEntryOnEntryCompartment3ViewFactory.class;
+		case OnExitOnExitCompartment3EditPart.VISUAL_ID:
+			return OnExitOnExitCompartment3ViewFactory.class;
+		case StateStateCompartment3EditPart.VISUAL_ID:
+			return StateStateCompartment3ViewFactory.class;
+		case ParallelParallelCompartment3EditPart.VISUAL_ID:
+			return ParallelParallelCompartment3ViewFactory.class;
+		case DataModelDataModelCompartmentEditPart.VISUAL_ID:
+			return DataModelDataModelCompartmentViewFactory.class;
+		case DataDataCompartmentEditPart.VISUAL_ID:
+			return DataDataCompartmentViewFactory.class;
+		case ContentContentCompartment5EditPart.VISUAL_ID:
+			return ContentContentCompartment5ViewFactory.class;
+		case FinalStateFinalStateCompartment2EditPart.VISUAL_ID:
+			return FinalStateFinalStateCompartment2ViewFactory.class;
+		case TranslationEventEditPart.VISUAL_ID:
+			return TranslationEventViewFactory.class;
+		}
+		return null;
+	}
+
+	/**
+	 * @generated
+	 */
+	protected Class getEdgeViewClass(IAdaptable semanticAdapter,
+			View containerView, String semanticHint) {
+		IElementType elementType = getSemanticElementType(semanticAdapter);
+		if (!ScxmlElementTypes.isKnownElementType(elementType)
+				|| (!(elementType instanceof IHintedType))) {
+			return null; // foreign element type
+		}
+		String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
+		if (elementTypeHint == null) {
+			return null; // our hint is visual id and must be specified
+		}
+		if (semanticHint != null && !semanticHint.equals(elementTypeHint)) {
+			return null; // if semantic hint is specified it should be the same as in element type
+		}
+		int visualID = ScxmlVisualIDRegistry.getVisualID(elementTypeHint);
+		EObject domainElement = getSemanticElement(semanticAdapter);
+		if (domainElement != null
+				&& visualID != ScxmlVisualIDRegistry
+						.getLinkWithClassVisualID(domainElement)) {
+			return null; // visual id for link EClass should match visual id from element type
+		}
+		return getEdgeViewClass(visualID);
+	}
+
+	/**
+	 * @generated
+	 */
+	protected Class getEdgeViewClass(int visualID) {
+		switch (visualID) {
+		case TranslationEditPart.VISUAL_ID:
+			return TranslationViewFactory.class;
+		}
+		return null;
+	}
+
+	/**
+	 * @generated
+	 */
+	private IElementType getSemanticElementType(IAdaptable semanticAdapter) {
+		if (semanticAdapter == null) {
+			return null;
+		}
+		return (IElementType) semanticAdapter.getAdapter(IElementType.class);
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/providers/ScxmlViewProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlPropertySection.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlPropertySection.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlPropertySection.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlPropertySection.java Mon May 17 14:38:45 2010
@@ -0,0 +1,133 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.sheet;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.ui.provider.PropertySource;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.properties.sections.AdvancedPropertySection;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.views.properties.IPropertySource;
+import org.eclipse.ui.views.properties.IPropertySourceProvider;
+
+/**
+ * @generated
+ */
+public class ScxmlPropertySection extends AdvancedPropertySection implements
+		IPropertySourceProvider {
+
+	/**
+	 * @generated
+	 */
+	public IPropertySource getPropertySource(Object object) {
+		if (object instanceof IPropertySource) {
+			return (IPropertySource) object;
+		}
+		AdapterFactory af = getAdapterFactory(object);
+		if (af != null) {
+			IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
+					IItemPropertySource.class);
+			if (ips != null) {
+				return new PropertySource(object, ips);
+			}
+		}
+		if (object instanceof IAdaptable) {
+			return (IPropertySource) ((IAdaptable) object)
+					.getAdapter(IPropertySource.class);
+		}
+		return null;
+	}
+
+	/**
+	 * @generated
+	 */
+	protected IPropertySourceProvider getPropertySourceProvider() {
+		return this;
+	}
+
+	/**
+	 * Modify/unwrap selection.
+	 * @generated
+	 */
+	protected Object transformSelection(Object selected) {
+
+		if (selected instanceof EditPart) {
+			Object model = ((EditPart) selected).getModel();
+			return model instanceof View ? ((View) model).getElement() : null;
+		}
+		if (selected instanceof View) {
+			return ((View) selected).getElement();
+		}
+		if (selected instanceof IAdaptable) {
+			View view = (View) ((IAdaptable) selected).getAdapter(View.class);
+			if (view != null) {
+				return view.getElement();
+			}
+		}
+		return selected;
+	}
+
+	/**
+	 * @generated
+	 */
+	public void setInput(IWorkbenchPart part, ISelection selection) {
+		if (selection.isEmpty()
+				|| false == selection instanceof StructuredSelection) {
+			super.setInput(part, selection);
+			return;
+		}
+		final StructuredSelection structuredSelection = ((StructuredSelection) selection);
+		ArrayList transformedSelection = new ArrayList(structuredSelection
+				.size());
+		for (Iterator it = structuredSelection.iterator(); it.hasNext();) {
+			Object r = transformSelection(it.next());
+			if (r != null) {
+				transformedSelection.add(r);
+			}
+		}
+		super.setInput(part, new StructuredSelection(transformedSelection));
+	}
+
+	/**
+	 * @generated
+	 */
+	protected AdapterFactory getAdapterFactory(Object object) {
+		if (getEditingDomain() instanceof AdapterFactoryEditingDomain) {
+			return ((AdapterFactoryEditingDomain) getEditingDomain())
+					.getAdapterFactory();
+		}
+		TransactionalEditingDomain editingDomain = TransactionUtil
+				.getEditingDomain(object);
+		if (editingDomain != null) {
+			return ((AdapterFactoryEditingDomain) editingDomain)
+					.getAdapterFactory();
+		}
+		return null;
+	}
+
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlPropertySection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlSheetLabelProvider.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlSheetLabelProvider.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlSheetLabelProvider.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlSheetLabelProvider.java Mon May 17 14:38:45 2010
@@ -0,0 +1,96 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.sheet;
+
+import org.apache.commons.scxml.diagram.navigator.ScxmlNavigatorGroup;
+import org.apache.commons.scxml.diagram.part.ScxmlDiagramEditorPlugin;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.viewers.DecoratingLabelProvider;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * @generated
+ */
+public class ScxmlSheetLabelProvider extends DecoratingLabelProvider {
+
+	/**
+	 * @generated
+	 */
+	public ScxmlSheetLabelProvider() {
+		super(new AdapterFactoryLabelProvider(ScxmlDiagramEditorPlugin
+				.getInstance().getItemProvidersAdapterFactory()), null);
+	}
+
+	/**
+	 * @generated
+	 */
+	public String getText(Object element) {
+		Object selected = unwrap(element);
+		if (selected instanceof ScxmlNavigatorGroup) {
+			return ((ScxmlNavigatorGroup) selected).getGroupName();
+		}
+		return super.getText(selected);
+	}
+
+	/**
+	 * @generated
+	 */
+	public Image getImage(Object element) {
+		return super.getImage(unwrap(element));
+	}
+
+	/**
+	 * @generated
+	 */
+	private Object unwrap(Object element) {
+		if (element instanceof IStructuredSelection) {
+			return unwrap(((IStructuredSelection) element).getFirstElement());
+		}
+		if (element instanceof EditPart) {
+			return unwrapEditPart((EditPart) element);
+		}
+		if (element instanceof IAdaptable) {
+			View view = (View) ((IAdaptable) element).getAdapter(View.class);
+			if (view != null) {
+				return unwrapView(view);
+			}
+		}
+		return element;
+	}
+
+	/**
+	 * @generated
+	 */
+	private Object unwrapEditPart(EditPart p) {
+		if (p.getModel() instanceof View) {
+			return unwrapView((View) p.getModel());
+		}
+		return p.getModel();
+	}
+
+	/**
+	 * @generated
+	 */
+	private Object unwrapView(View view) {
+		return view.getElement() == null ? view : view.getElement();
+	}
+
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/sheet/ScxmlSheetLabelProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Anchor2ViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Anchor2ViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Anchor2ViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Anchor2ViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.commons.scxml.diagram.edit.parts.Anchor2EditPart;
+import org.apache.commons.scxml.diagram.edit.parts.AnchorType2EditPart;
+import org.apache.commons.scxml.diagram.part.ScxmlVisualIDRegistry;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.notation.NotationFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class Anchor2ViewFactory extends AbstractShapeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		styles.add(NotationFactory.eINSTANCE.createShapeStyle());
+		return styles;
+	}
+
+	/**
+	 * @generated
+	 */
+	protected void decorateView(View containerView, View view,
+			IAdaptable semanticAdapter, String semanticHint, int index,
+			boolean persisted) {
+		if (semanticHint == null) {
+			semanticHint = ScxmlVisualIDRegistry
+					.getType(Anchor2EditPart.VISUAL_ID);
+			view.setType(semanticHint);
+		}
+		super.decorateView(containerView, view, semanticAdapter, semanticHint,
+				index, persisted);
+		IAdaptable eObjectAdapter = null;
+		EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
+		if (eObject != null) {
+			eObjectAdapter = new EObjectAdapter(eObject);
+		}
+		getViewService().createNode(eObjectAdapter, view,
+				ScxmlVisualIDRegistry.getType(AnchorType2EditPart.VISUAL_ID),
+				ViewUtil.APPEND, true, getPreferencesHint());
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Anchor2ViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorType2ViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorType2ViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorType2ViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorType2ViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class AnchorType2ViewFactory extends BasicNodeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		return styles;
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorType2ViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorTypeViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorTypeViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorTypeViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorTypeViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class AnchorTypeViewFactory extends BasicNodeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		return styles;
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorTypeViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.commons.scxml.diagram.edit.parts.AnchorEditPart;
+import org.apache.commons.scxml.diagram.edit.parts.AnchorTypeEditPart;
+import org.apache.commons.scxml.diagram.part.ScxmlVisualIDRegistry;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.notation.NotationFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class AnchorViewFactory extends AbstractShapeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		styles.add(NotationFactory.eINSTANCE.createShapeStyle());
+		return styles;
+	}
+
+	/**
+	 * @generated
+	 */
+	protected void decorateView(View containerView, View view,
+			IAdaptable semanticAdapter, String semanticHint, int index,
+			boolean persisted) {
+		if (semanticHint == null) {
+			semanticHint = ScxmlVisualIDRegistry
+					.getType(AnchorEditPart.VISUAL_ID);
+			view.setType(semanticHint);
+		}
+		super.decorateView(containerView, view, semanticAdapter, semanticHint,
+				index, persisted);
+		IAdaptable eObjectAdapter = null;
+		EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
+		if (eObject != null) {
+			eObjectAdapter = new EObjectAdapter(eObject);
+		}
+		getViewService().createNode(eObjectAdapter, view,
+				ScxmlVisualIDRegistry.getType(AnchorTypeEditPart.VISUAL_ID),
+				ViewUtil.APPEND, true, getPreferencesHint());
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AnchorViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Assign2ViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Assign2ViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Assign2ViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Assign2ViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,73 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.commons.scxml.diagram.edit.parts.Assign2EditPart;
+import org.apache.commons.scxml.diagram.edit.parts.AssignDataid2EditPart;
+import org.apache.commons.scxml.diagram.edit.parts.AssignExpr2EditPart;
+import org.apache.commons.scxml.diagram.part.ScxmlVisualIDRegistry;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.notation.NotationFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class Assign2ViewFactory extends AbstractShapeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		styles.add(NotationFactory.eINSTANCE.createShapeStyle());
+		return styles;
+	}
+
+	/**
+	 * @generated
+	 */
+	protected void decorateView(View containerView, View view,
+			IAdaptable semanticAdapter, String semanticHint, int index,
+			boolean persisted) {
+		if (semanticHint == null) {
+			semanticHint = ScxmlVisualIDRegistry
+					.getType(Assign2EditPart.VISUAL_ID);
+			view.setType(semanticHint);
+		}
+		super.decorateView(containerView, view, semanticAdapter, semanticHint,
+				index, persisted);
+		IAdaptable eObjectAdapter = null;
+		EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
+		if (eObject != null) {
+			eObjectAdapter = new EObjectAdapter(eObject);
+		}
+		getViewService().createNode(eObjectAdapter, view,
+				ScxmlVisualIDRegistry.getType(AssignDataid2EditPart.VISUAL_ID),
+				ViewUtil.APPEND, true, getPreferencesHint());
+		getViewService().createNode(eObjectAdapter, view,
+				ScxmlVisualIDRegistry.getType(AssignExpr2EditPart.VISUAL_ID),
+				ViewUtil.APPEND, true, getPreferencesHint());
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Assign2ViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataid2ViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataid2ViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataid2ViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataid2ViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class AssignDataid2ViewFactory extends BasicNodeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		return styles;
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataid2ViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataidViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataidViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataidViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataidViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class AssignDataidViewFactory extends BasicNodeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		return styles;
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignDataidViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExpr2ViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExpr2ViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExpr2ViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExpr2ViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class AssignExpr2ViewFactory extends BasicNodeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		return styles;
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExpr2ViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExprViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExprViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExprViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExprViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class AssignExprViewFactory extends BasicNodeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		return styles;
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignExprViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,73 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.commons.scxml.diagram.edit.parts.AssignDataidEditPart;
+import org.apache.commons.scxml.diagram.edit.parts.AssignEditPart;
+import org.apache.commons.scxml.diagram.edit.parts.AssignExprEditPart;
+import org.apache.commons.scxml.diagram.part.ScxmlVisualIDRegistry;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.notation.NotationFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class AssignViewFactory extends AbstractShapeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		styles.add(NotationFactory.eINSTANCE.createShapeStyle());
+		return styles;
+	}
+
+	/**
+	 * @generated
+	 */
+	protected void decorateView(View containerView, View view,
+			IAdaptable semanticAdapter, String semanticHint, int index,
+			boolean persisted) {
+		if (semanticHint == null) {
+			semanticHint = ScxmlVisualIDRegistry
+					.getType(AssignEditPart.VISUAL_ID);
+			view.setType(semanticHint);
+		}
+		super.decorateView(containerView, view, semanticAdapter, semanticHint,
+				index, persisted);
+		IAdaptable eObjectAdapter = null;
+		EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
+		if (eObject != null) {
+			eObjectAdapter = new EObjectAdapter(eObject);
+		}
+		getViewService().createNode(eObjectAdapter, view,
+				ScxmlVisualIDRegistry.getType(AssignDataidEditPart.VISUAL_ID),
+				ViewUtil.APPEND, true, getPreferencesHint());
+		getViewService().createNode(eObjectAdapter, view,
+				ScxmlVisualIDRegistry.getType(AssignExprEditPart.VISUAL_ID),
+				ViewUtil.APPEND, true, getPreferencesHint());
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/AssignViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Cancel2ViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Cancel2ViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Cancel2ViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Cancel2ViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.commons.scxml.diagram.edit.parts.Cancel2EditPart;
+import org.apache.commons.scxml.diagram.edit.parts.CancelSendid2EditPart;
+import org.apache.commons.scxml.diagram.part.ScxmlVisualIDRegistry;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.notation.NotationFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class Cancel2ViewFactory extends AbstractShapeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		styles.add(NotationFactory.eINSTANCE.createShapeStyle());
+		return styles;
+	}
+
+	/**
+	 * @generated
+	 */
+	protected void decorateView(View containerView, View view,
+			IAdaptable semanticAdapter, String semanticHint, int index,
+			boolean persisted) {
+		if (semanticHint == null) {
+			semanticHint = ScxmlVisualIDRegistry
+					.getType(Cancel2EditPart.VISUAL_ID);
+			view.setType(semanticHint);
+		}
+		super.decorateView(containerView, view, semanticAdapter, semanticHint,
+				index, persisted);
+		IAdaptable eObjectAdapter = null;
+		EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
+		if (eObject != null) {
+			eObjectAdapter = new EObjectAdapter(eObject);
+		}
+		getViewService().createNode(eObjectAdapter, view,
+				ScxmlVisualIDRegistry.getType(CancelSendid2EditPart.VISUAL_ID),
+				ViewUtil.APPEND, true, getPreferencesHint());
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/Cancel2ViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendid2ViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendid2ViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendid2ViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendid2ViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class CancelSendid2ViewFactory extends BasicNodeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		return styles;
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendid2ViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendidViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendidViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendidViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendidViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class CancelSendidViewFactory extends BasicNodeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		return styles;
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelSendidViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelViewFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelViewFactory.java?rev=945185&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelViewFactory.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelViewFactory.java Mon May 17 14:38:45 2010
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml.diagram.view.factories;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.commons.scxml.diagram.edit.parts.CancelEditPart;
+import org.apache.commons.scxml.diagram.edit.parts.CancelSendidEditPart;
+import org.apache.commons.scxml.diagram.part.ScxmlVisualIDRegistry;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.notation.NotationFactory;
+import org.eclipse.gmf.runtime.notation.View;
+
+/**
+ * @generated
+ */
+public class CancelViewFactory extends AbstractShapeViewFactory {
+
+	/**
+	 * @generated
+	 */
+	protected List createStyles(View view) {
+		List styles = new ArrayList();
+		styles.add(NotationFactory.eINSTANCE.createShapeStyle());
+		return styles;
+	}
+
+	/**
+	 * @generated
+	 */
+	protected void decorateView(View containerView, View view,
+			IAdaptable semanticAdapter, String semanticHint, int index,
+			boolean persisted) {
+		if (semanticHint == null) {
+			semanticHint = ScxmlVisualIDRegistry
+					.getType(CancelEditPart.VISUAL_ID);
+			view.setType(semanticHint);
+		}
+		super.decorateView(containerView, view, semanticAdapter, semanticHint,
+				index, persisted);
+		IAdaptable eObjectAdapter = null;
+		EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
+		if (eObject != null) {
+			eObjectAdapter = new EObjectAdapter(eObject);
+		}
+		getViewService().createNode(eObjectAdapter, view,
+				ScxmlVisualIDRegistry.getType(CancelSendidEditPart.VISUAL_ID),
+				ViewUtil.APPEND, true, getPreferencesHint());
+	}
+}

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/diagram/view/factories/CancelViewFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message