You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gu...@apache.org on 2010/05/18 17:13:31 UTC
svn commit: r945691 [8/39] - in
/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src:
main/java/org.apache.commons.scxml.diagram/
main/java/org.apache.commons.scxml.diagram/META-INF/
main/java/org.apache.commons.scxml.diagram/icons/obj16/ main/java/org.a...
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelId3EditPart.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/modeling/diagram/edit/parts/ParallelId3EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelId3EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelId3EditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class ParallelId3EditPart extends
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class ParallelId3EditPart extends
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,8 @@ public class ParallelId3EditPart extends
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Parallel_2035, getParserElement(),
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Parallel_2035, getParserElement(),
parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
@@ -335,7 +319,7 @@ public class ParallelId3EditPart extends
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -429,8 +413,8 @@ public class ParallelId3EditPart extends
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelIdEditPart.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/modeling/diagram/edit/parts/ParallelIdEditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelIdEditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelIdEditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class ParallelIdEditPart extends
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class ParallelIdEditPart extends
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,8 @@ public class ParallelIdEditPart extends
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Parallel_1004, getParserElement(),
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Parallel_1004, getParserElement(),
parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
@@ -335,7 +319,7 @@ public class ParallelIdEditPart extends
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -429,8 +413,8 @@ public class ParallelIdEditPart extends
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelParallelCompartment2EditPart.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/modeling/diagram/edit/parts/ParallelParallelCompartment2EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelParallelCompartment2EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelParallelCompartment2EditPart.java Tue May 18 15:13:13 2010
@@ -1,19 +1,3 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.ParallelParallelCompartment2CanonicalEditPolicy;
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelParallelCompartment3EditPart.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/modeling/diagram/edit/parts/ParallelParallelCompartment3EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelParallelCompartment3EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelParallelCompartment3EditPart.java Tue May 18 15:13:13 2010
@@ -1,19 +1,3 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.ParallelParallelCompartment3CanonicalEditPolicy;
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelParallelCompartmentEditPart.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/modeling/diagram/edit/parts/ParallelParallelCompartmentEditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelParallelCompartmentEditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParallelParallelCompartmentEditPart.java Tue May 18 15:13:13 2010
@@ -1,19 +1,3 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.ParallelParallelCompartmentCanonicalEditPolicy;
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param2EditPart.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/modeling/diagram/edit/parts/Param2EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param2EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param2EditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.Param2ItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class Param2EditPart extends Shap
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(ParamName2EditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param3EditPart.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/modeling/diagram/edit/parts/Param3EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param3EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param3EditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.Param3ItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class Param3EditPart extends Shap
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(ParamName3EditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param4EditPart.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/modeling/diagram/edit/parts/Param4EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param4EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param4EditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.Param4ItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class Param4EditPart extends Shap
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(ParamName4EditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param5EditPart.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/modeling/diagram/edit/parts/Param5EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param5EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Param5EditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.Param5ItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class Param5EditPart extends Shap
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(ParamName5EditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamEditPart.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/modeling/diagram/edit/parts/ParamEditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamEditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamEditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.ParamItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class ParamEditPart extends Shape
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(ParamNameEditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName2EditPart.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/modeling/diagram/edit/parts/ParamName2EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName2EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName2EditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class ParamName2EditPart extends
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class ParamName2EditPart extends
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,8 @@ public class ParamName2EditPart extends
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Param_2014, getParserElement(),
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Param_2014, getParserElement(),
parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
@@ -335,7 +319,7 @@ public class ParamName2EditPart extends
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -429,8 +413,8 @@ public class ParamName2EditPart extends
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName3EditPart.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/modeling/diagram/edit/parts/ParamName3EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName3EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName3EditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class ParamName3EditPart extends
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class ParamName3EditPart extends
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,8 @@ public class ParamName3EditPart extends
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Param_2023, getParserElement(),
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Param_2023, getParserElement(),
parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
@@ -335,7 +319,7 @@ public class ParamName3EditPart extends
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -429,8 +413,8 @@ public class ParamName3EditPart extends
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName4EditPart.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/modeling/diagram/edit/parts/ParamName4EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName4EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName4EditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class ParamName4EditPart extends
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class ParamName4EditPart extends
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,8 @@ public class ParamName4EditPart extends
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Param_2028, getParserElement(),
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Param_2028, getParserElement(),
parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
@@ -335,7 +319,7 @@ public class ParamName4EditPart extends
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -429,8 +413,8 @@ public class ParamName4EditPart extends
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName5EditPart.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/modeling/diagram/edit/parts/ParamName5EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName5EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamName5EditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class ParamName5EditPart extends
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class ParamName5EditPart extends
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,8 @@ public class ParamName5EditPart extends
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Param_2042, getParserElement(),
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Param_2042, getParserElement(),
parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
@@ -335,7 +319,7 @@ public class ParamName5EditPart extends
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -429,8 +413,8 @@ public class ParamName5EditPart extends
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamNameEditPart.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/modeling/diagram/edit/parts/ParamNameEditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamNameEditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ParamNameEditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class ParamNameEditPart extends C
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class ParamNameEditPart extends C
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,8 @@ public class ParamNameEditPart extends C
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Param_2011, getParserElement(),
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Param_2011, getParserElement(),
parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
@@ -335,7 +319,7 @@ public class ParamNameEditPart extends C
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -429,8 +413,8 @@ public class ParamNameEditPart extends C
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Raise2EditPart.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/modeling/diagram/edit/parts/Raise2EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Raise2EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Raise2EditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.Raise2ItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class Raise2EditPart extends Shap
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(RaiseEvent2EditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/RaiseEditPart.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/modeling/diagram/edit/parts/RaiseEditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/RaiseEditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/RaiseEditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.RaiseItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class RaiseEditPart extends Shape
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(RaiseEventEditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/RaiseEvent2EditPart.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/modeling/diagram/edit/parts/RaiseEvent2EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/RaiseEvent2EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/RaiseEvent2EditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class RaiseEvent2EditPart extends
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class RaiseEvent2EditPart extends
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,8 @@ public class RaiseEvent2EditPart extends
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Raise_2019, getParserElement(),
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Raise_2019, getParserElement(),
parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
@@ -335,7 +319,7 @@ public class RaiseEvent2EditPart extends
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -429,8 +413,8 @@ public class RaiseEvent2EditPart extends
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/RaiseEventEditPart.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/modeling/diagram/edit/parts/RaiseEventEditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/RaiseEventEditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/RaiseEventEditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class RaiseEventEditPart extends
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class RaiseEventEditPart extends
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,8 @@ public class RaiseEventEditPart extends
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Raise_2006, getParserElement(),
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Raise_2006, getParserElement(),
parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
@@ -335,7 +319,7 @@ public class RaiseEventEditPart extends
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -429,8 +413,8 @@ public class RaiseEventEditPart extends
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Script2EditPart.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/modeling/diagram/edit/parts/Script2EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Script2EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Script2EditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.Script2ItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class Script2EditPart extends Sha
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(WrappingLabel5EditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Script3EditPart.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/modeling/diagram/edit/parts/Script3EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Script3EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Script3EditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.Script3ItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class Script3EditPart extends Sha
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(WrappingLabel7EditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ScriptEditPart.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/modeling/diagram/edit/parts/ScriptEditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ScriptEditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/ScriptEditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.ScriptItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class ScriptEditPart extends Shap
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(WrappingLabel2EditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Send2EditPart.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/modeling/diagram/edit/parts/Send2EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Send2EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/Send2EditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.Send2ItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class Send2EditPart extends Shape
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(SendEvent2EditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendEditPart.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/modeling/diagram/edit/parts/SendEditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendEditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendEditPart.java Tue May 18 15:13:13 2010
@@ -1,23 +1,7 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.SendItemSemanticEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.part.ScxmlVisualIDRegistry;
+import org.apache.commons.scxml.modeling.diagram.part.ModelingVisualIDRegistry;
import org.eclipse.draw2d.FlowLayout;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.RectangleFigure;
@@ -217,7 +201,7 @@ public class SendEditPart extends ShapeN
* @generated
*/
public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(ScxmlVisualIDRegistry
+ return getChildBySemanticHint(ModelingVisualIDRegistry
.getType(SendEventEditPart.VISUAL_ID));
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendEvent2EditPart.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/modeling/diagram/edit/parts/SendEvent2EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendEvent2EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendEvent2EditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class SendEvent2EditPart extends
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class SendEvent2EditPart extends
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,9 @@ public class SendEvent2EditPart extends
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Send_2024, getParserElement(), parserHint);
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Send_2024, getParserElement(),
+ parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
return parser;
@@ -334,7 +319,7 @@ public class SendEvent2EditPart extends
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -428,8 +413,8 @@ public class SendEvent2EditPart extends
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendEventEditPart.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/modeling/diagram/edit/parts/SendEventEditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendEventEditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendEventEditPart.java Tue May 18 15:13:13 2010
@@ -1,28 +1,12 @@
-/*
- * 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.modeling.diagram.edit.parts;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.apache.commons.scxml.modeling.diagram.edit.policies.ScxmlTextSelectionEditPolicy;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlElementTypes;
-import org.apache.commons.scxml.modeling.diagram.providers.ScxmlParserProvider;
+import org.apache.commons.scxml.modeling.diagram.edit.policies.ModelingTextSelectionEditPolicy;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingElementTypes;
+import org.apache.commons.scxml.modeling.diagram.providers.ModelingParserProvider;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
@@ -214,7 +198,7 @@ public class SendEventEditPart extends C
if (parserElement == null) {
return null;
}
- return ScxmlElementTypes.getImage(parserElement.eClass());
+ return ModelingElementTypes.getImage(parserElement.eClass());
}
/**
@@ -240,8 +224,8 @@ public class SendEventEditPart extends C
public void setLabelText(String text) {
setLabelTextHelper(getFigure(), text);
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
@@ -321,8 +305,9 @@ public class SendEventEditPart extends C
public IParser getParser() {
if (parser == null) {
String parserHint = ((View) getModel()).getType();
- IAdaptable hintAdapter = new ScxmlParserProvider.HintAdapter(
- ScxmlElementTypes.Send_2010, getParserElement(), parserHint);
+ IAdaptable hintAdapter = new ModelingParserProvider.HintAdapter(
+ ModelingElementTypes.Send_2010, getParserElement(),
+ parserHint);
parser = ParserService.getInstance().getParser(hintAdapter);
}
return parser;
@@ -334,7 +319,7 @@ public class SendEventEditPart extends C
protected DirectEditManager getManager() {
if (manager == null) {
setManager(new TextDirectEditManager(this, TextDirectEditManager
- .getTextCellEditorClass(this), ScxmlEditPartFactory
+ .getTextCellEditorClass(this), ModelingEditPartFactory
.getTextCellEditorLocator(this)));
}
return manager;
@@ -428,8 +413,8 @@ public class SendEventEditPart extends C
setLabelTextHelper(getFigure(), getLabelText());
setLabelIconHelper(getFigure(), getLabelIcon());
Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof ScxmlTextSelectionEditPolicy) {
- ((ScxmlTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ if (pdEditPolicy instanceof ModelingTextSelectionEditPolicy) {
+ ((ModelingTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
}
}
Modified: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendSendCompartment2EditPart.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/modeling/diagram/edit/parts/SendSendCompartment2EditPart.java?rev=945691&r1=945690&r2=945691&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendSendCompartment2EditPart.java (original)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml.diagram/src/org/apache/commons/scxml/modeling/diagram/edit/parts/SendSendCompartment2EditPart.java Tue May 18 15:13:13 2010
@@ -1,19 +1,3 @@
-/*
- * 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.modeling.diagram.edit.parts;
import org.apache.commons.scxml.modeling.diagram.edit.policies.SendSendCompartment2CanonicalEditPolicy;