summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-04-19 04:34:03 (EDT)
committer Stephan Born2012-04-24 10:14:04 (EDT)
commit1bbdc83ea19490800e146c481ec58ccf32277a3d (patch)
treef7d4ebd279835493c08330efbfccd5dce242ef56
parent1ea6a0caec18ee1bec2b0611ed5cf9135b2dca1d (diff)
downloadorg.eclipse.stardust.ide-1bbdc83ea19490800e146c481ec58ccf32277a3d.zip
org.eclipse.stardust.ide-1bbdc83ea19490800e146c481ec58ccf32277a3d.tar.gz
org.eclipse.stardust.ide-1bbdc83ea19490800e146c481ec58ccf32277a3d.tar.bz2
Jira-ID: CRNT-23740
"Visibility Public" checkbox should be added for all data types and participants which can be shared across models (added this feature for Organizations as well) git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@55608 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/OrganizationPropertyPage.java10
-rw-r--r--modeling/org.eclipse.stardust.modeling.repository.common/src/org/eclipse/stardust/modeling/repository/common/ConnectionManager.java11
2 files changed, 20 insertions, 1 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/OrganizationPropertyPage.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/OrganizationPropertyPage.java
index 2c73890..3c4b2be 100644
--- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/OrganizationPropertyPage.java
+++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/OrganizationPropertyPage.java
@@ -10,7 +10,15 @@
*******************************************************************************/
package org.eclipse.stardust.modeling.core.properties;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+
public class OrganizationPropertyPage extends IdentifiablePropertyPage
{
- // (fh) just marker class, no functionality added
+ @Override
+ public Control createBody(Composite parent)
+ {
+ setProvidesVisibility(true);
+ return super.createBody(parent);
+ }
} \ No newline at end of file
diff --git a/modeling/org.eclipse.stardust.modeling.repository.common/src/org/eclipse/stardust/modeling/repository/common/ConnectionManager.java b/modeling/org.eclipse.stardust.modeling.repository.common/src/org/eclipse/stardust/modeling/repository/common/ConnectionManager.java
index 161686c..31f88fb 100644
--- a/modeling/org.eclipse.stardust.modeling.repository.common/src/org/eclipse/stardust/modeling/repository/common/ConnectionManager.java
+++ b/modeling/org.eclipse.stardust.modeling.repository.common/src/org/eclipse/stardust/modeling/repository/common/ConnectionManager.java
@@ -91,6 +91,17 @@ public class ConnectionManager implements IConnectionManager
return false;
}
}
+ if (eObjectdescriptor.getEObject() instanceof OrganizationType)
+ {
+ OrganizationType orgType = eObjectdescriptor.getEObject();
+ AttributeType visibility = AttributeUtil.getAttribute(
+ (IExtensibleElement) orgType,
+ PredefinedConstants.MODELELEMENT_VISIBILITY);
+ if (visibility != null && "Private".equals(visibility.getValue())) //$NON-NLS-1$
+ {
+ return false;
+ }
+ }
if (eObjectdescriptor.getEObject() instanceof DataType)
{
DataType dataType = eObjectdescriptor.getEObject();