| author | Rainer Pielmann | 2012-04-05 03:29:12 (EDT) |
|---|---|---|
| committer | Stephan Born | 2012-04-24 10:13:53 (EDT) |
| commit | 1c77f44f2a47403e401b65b3ef0e1197f00c6016 (patch) (side-by-side diff) | |
| tree | defd6614bc12316a2f9a048a23afafda12fae808 | |
| parent | ac16e765fe782583b525764f9eb9adb524073112 (diff) | |
| download | org.eclipse.stardust.ide-1c77f44f2a47403e401b65b3ef0e1197f00c6016.zip org.eclipse.stardust.ide-1c77f44f2a47403e401b65b3ef0e1197f00c6016.tar.gz org.eclipse.stardust.ide-1c77f44f2a47403e401b65b3ef0e1197f00c6016.tar.bz2 | |
Jira-ID: CRNT-24487
Activity relocation: Could not save the property in Manual activity related to activity relocation
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@55316 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
| -rw-r--r-- | modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/IdentifiablePropertyPage.java | 71 |
1 files changed, 1 insertions, 70 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/IdentifiablePropertyPage.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/IdentifiablePropertyPage.java index e00ce60..fe72fd5 100644 --- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/IdentifiablePropertyPage.java +++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/IdentifiablePropertyPage.java @@ -10,16 +10,11 @@ *******************************************************************************/ package org.eclipse.stardust.modeling.core.properties; -import org.eclipse.stardust.engine.api.model.PredefinedConstants; -import org.eclipse.stardust.model.xpdl.carnot.AttributeType; -import org.eclipse.stardust.model.xpdl.carnot.IExtensibleElement; import org.eclipse.stardust.model.xpdl.carnot.IIdentifiableModelElement; import org.eclipse.stardust.model.xpdl.carnot.IModelElement; import org.eclipse.stardust.model.xpdl.carnot.IModelElementNodeSymbol; import org.eclipse.stardust.model.xpdl.carnot.ModelType; -import org.eclipse.stardust.model.xpdl.carnot.util.AttributeUtil; import org.eclipse.stardust.model.xpdl.carnot.util.ModelUtils; -import org.eclipse.stardust.modeling.common.projectnature.BpmProjectNature; import org.eclipse.stardust.modeling.common.ui.jface.utils.FormBuilder; import org.eclipse.stardust.modeling.common.ui.jface.utils.LabeledText; import org.eclipse.stardust.modeling.core.Diagram_Messages; @@ -28,7 +23,6 @@ import org.eclipse.stardust.modeling.core.utils.GenericUtils; import org.eclipse.stardust.modeling.core.utils.WidgetBindingManager; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.widgets.Button; @@ -36,7 +30,6 @@ import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Text; -import org.eclipse.ui.PlatformUI; public class IdentifiablePropertyPage extends AbstractModelElementPropertyPage @@ -51,12 +44,6 @@ public class IdentifiablePropertyPage extends AbstractModelElementPropertyPage protected LabeledText txtDescription; protected Button autoIdButton; - - protected Button publicCheckBox; - - protected boolean publicType; - - protected IModelElement modelElement; private SelectionListener autoIdListener = new SelectionListener() { @@ -114,9 +101,6 @@ public class IdentifiablePropertyPage extends AbstractModelElementPropertyPage txtName.getText().selectAll(); txtName.getText().setFocus(); - - modelElement = element; - setupVisibility(); } public void loadElementFromFields(IModelElementNodeSymbol symbol, IModelElement element) @@ -165,60 +149,7 @@ public class IdentifiablePropertyPage extends AbstractModelElementPropertyPage } protected void contributeExtraControls(Composite composite) - { - publicCheckBox = FormBuilder.createCheckBox(composite, - Diagram_Messages.CHECKBOX_Visibility, 2); - publicCheckBox.addSelectionListener(new SelectionAdapter() - { - - public void widgetSelected(SelectionEvent e) - { - - publicType = !publicType; - if (publicType) - { - AttributeUtil.setAttribute((IExtensibleElement) modelElement, - PredefinedConstants.MODELELEMENT_VISIBILITY, "Public"); //$NON-NLS-1$ - } - else - { - AttributeUtil.setAttribute((IExtensibleElement) modelElement, - PredefinedConstants.MODELELEMENT_VISIBILITY, "Private"); //$NON-NLS-1$ - } - } - }); - } - - protected void setupVisibility() - { - AttributeType visibility = AttributeUtil.getAttribute( - (IExtensibleElement) modelElement, - PredefinedConstants.MODELELEMENT_VISIBILITY); - if (visibility == null) - { - String visibilityDefault = PlatformUI.getPreferenceStore().getString( - BpmProjectNature.PREFERENCE_MULTIPACKAGEMODELING_VISIBILITY); - if (visibilityDefault == null || visibilityDefault == "" //$NON-NLS-1$ - || visibilityDefault.equalsIgnoreCase("Public")) //$NON-NLS-1$ - { - AttributeUtil.setAttribute((IExtensibleElement) modelElement, - PredefinedConstants.MODELELEMENT_VISIBILITY, "Public"); //$NON-NLS-1$ - publicType = true; - } - } - else - { - if (visibility.getValue().equalsIgnoreCase("Public")) //$NON-NLS-1$ - { - publicType = true; - } - else - { - publicType = false; - } - } - publicCheckBox.setSelection(publicType); - } + {} protected String getId() { |

