Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/components/ValuePinPropertiesEditionComponent.java')
-rw-r--r--extraplugins/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/components/ValuePinPropertiesEditionComponent.java102
1 files changed, 102 insertions, 0 deletions
diff --git a/extraplugins/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/components/ValuePinPropertiesEditionComponent.java b/extraplugins/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/components/ValuePinPropertiesEditionComponent.java
new file mode 100644
index 00000000000..d4976cc35c3
--- /dev/null
+++ b/extraplugins/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/components/ValuePinPropertiesEditionComponent.java
@@ -0,0 +1,102 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.papyrus.tabbedproperties.uml.components;
+
+// Start of user code for imports
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.eef.runtime.api.parts.IPropertiesEditionPart;
+import org.eclipse.emf.eef.runtime.impl.components.ComposedPropertiesEditionComponent;
+import org.eclipse.papyrus.tabbedproperties.uml.parts.UMLViewsRepository;
+import org.eclipse.papyrus.tabbedproperties.uml.parts.ValuePinPropertiesEditionPart;
+import org.eclipse.uml2.uml.ValuePin;
+
+// End of user code
+
+/**
+ * @author <a href="mailto:jerome.benois@obeo.fr">Jerome Benois</a>
+ */
+public class ValuePinPropertiesEditionComponent extends ComposedPropertiesEditionComponent {
+
+ /**
+ * The Base part
+ */
+ private ValuePinPropertiesEditionPart basePart;
+
+ /**
+ * The ValuePinBasePropertiesEditionComponent sub component
+ */
+ protected ValuePinBasePropertiesEditionComponent valuePinBasePropertiesEditionComponent;
+
+ /**
+ * The ElementPropertiesEditionComponent sub component
+ */
+ protected ElementPropertiesEditionComponent elementPropertiesEditionComponent;
+
+ /**
+ * Parameterized constructor
+ *
+ * @param valuePin
+ * the EObject to edit
+ */
+ public ValuePinPropertiesEditionComponent(EObject valuePin, String editing_mode) {
+ super(editing_mode);
+ if(valuePin instanceof ValuePin) {
+ valuePinBasePropertiesEditionComponent = new ValuePinBasePropertiesEditionComponent(valuePin, editing_mode);
+ addSubComponent(valuePinBasePropertiesEditionComponent);
+ elementPropertiesEditionComponent = new ElementPropertiesEditionComponent(valuePin, editing_mode);
+ addSubComponent(elementPropertiesEditionComponent);
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.emf.eef.runtime.impl.components.ComposedPropertiesEditionComponent# getPropertiesEditionPart(int, java.lang.String)
+ */
+ public IPropertiesEditionPart getPropertiesEditionPart(int kind, String key) {
+ if("Base".equals(key)) {
+ basePart = (ValuePinPropertiesEditionPart)valuePinBasePropertiesEditionComponent.getPropertiesEditionPart(kind, key);
+ return (IPropertiesEditionPart)basePart;
+ }
+ return super.getPropertiesEditionPart(kind, key);
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.emf.eef.runtime.impl.components.ComposedPropertiesEditionComponent# setPropertiesEditionPart(java.lang.Class, int,
+ * org.eclipse.emf.eef.runtime.api.parts.IPropertiesEditionPart)
+ */
+ public void setPropertiesEditionPart(java.lang.Class key, int kind, IPropertiesEditionPart propertiesEditionPart) {
+ if(UMLViewsRepository.ValuePin.class == key) {
+ super.setPropertiesEditionPart(key, kind, propertiesEditionPart);
+ basePart = (ValuePinPropertiesEditionPart)propertiesEditionPart;
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.emf.eef.runtime.impl.components.ComposedPropertiesEditionComponent #initPart(java.lang.Class, int,
+ * org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.resource.ResourceSet)
+ */
+ public void initPart(java.lang.Class key, int kind, EObject element, ResourceSet allResource) {
+ if(key == UMLViewsRepository.ValuePin.class) {
+ super.initPart(key, kind, element, allResource);
+ }
+ if(key == UMLViewsRepository.Comments.class) {
+ super.initPart(key, kind, element, allResource);
+
+ }
+ }
+}

Back to the top