aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Ladenberger2012-03-28 04:39:43 (EDT)
committerMichael Jastram2012-04-05 06:40:11 (EDT)
commit8a4eebaadd4d748398228b45e83a63eabbc5ae62 (patch)
tree00ef1d476bdf73732f70f7b2b6350dc29e0640f7
parent3420a2549af97feb4c4c906f92f6386a4ec2dfe9 (diff)
downloadorg.eclipse.rmf-8a4eebaadd4d748398228b45e83a63eabbc5ae62.zip
org.eclipse.rmf-8a4eebaadd4d748398228b45e83a63eabbc5ae62.tar.gz
org.eclipse.rmf-8a4eebaadd4d748398228b45e83a63eabbc5ae62.tar.bz2
Bug 374189 - Feature: Save the width of the very fist column (The column showing the hierarchy level)
-rw-r--r--org.eclipse.rmf.pror.reqif10.edit/plugin.properties1
-rw-r--r--org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ColumnItemProvider.java9
-rw-r--r--org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ProrSpecViewConfigurationItemProvider.java30
-rw-r--r--org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java28
-rw-r--r--org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/Reqif10ModelWizard.java5
-rw-r--r--org.eclipse.rmf.pror.reqif10/model/configuration.ecore2
-rw-r--r--org.eclipse.rmf.pror.reqif10/pror-standalone.target46
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ConfigPackage.java31
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrPresentationConfiguration.java1
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrSpecViewConfiguration.java29
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrToolExtension.java1
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ConfigPackageImpl.java17
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrPresentationConfigurationImpl.java3
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrSpecViewConfigurationImpl.java71
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrToolExtensionImpl.java6
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigAdapterFactory.java16
-rw-r--r--org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigSwitch.java11
17 files changed, 231 insertions, 76 deletions
diff --git a/org.eclipse.rmf.pror.reqif10.edit/plugin.properties b/org.eclipse.rmf.pror.reqif10.edit/plugin.properties
index e692105..8eefc60 100644
--- a/org.eclipse.rmf.pror.reqif10.edit/plugin.properties
+++ b/org.eclipse.rmf.pror.reqif10.edit/plugin.properties
@@ -204,3 +204,4 @@ _UI_SpecObjectPropertyCategory = Spec Object
_UI_SpecificationPropertyCategory = Specification
_UI_RelationGroupPropertyCategory = Relation Group
_UI_SpecRelationPropertyCategory = Spec Relation
+_UI_ProrSpecViewConfiguration_leftHeaderColumn_feature = Left Header Column
diff --git a/org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ColumnItemProvider.java b/org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ColumnItemProvider.java
index 2b41e90..d9ddf0e 100644
--- a/org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ColumnItemProvider.java
+++ b/org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ColumnItemProvider.java
@@ -164,15 +164,6 @@ public class ColumnItemProvider
switch (notification.getFeatureID(Column.class)) {
case ConfigPackage.COLUMN__LABEL:
- // inform the parent
- InternalEObject parent = (InternalEObject) ((EObject) notification
- .getNotifier()).eContainer();
- if (parent instanceof ProrSpecViewConfiguration) {
- parent.eNotify(new ENotificationImpl(
- parent, ENotificationImpl.SET,
- ConfigPackage.Literals.PROR_SPEC_VIEW_CONFIGURATION__COLUMNS,
- notification.getNotifier(), notification.getNotifier()));
- }
case ConfigPackage.COLUMN__WIDTH:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
diff --git a/org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ProrSpecViewConfigurationItemProvider.java b/org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ProrSpecViewConfigurationItemProvider.java
index fb2d3ae..aa71ef4 100644
--- a/org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ProrSpecViewConfigurationItemProvider.java
+++ b/org.eclipse.rmf.pror.reqif10.edit/src/org/eclipse/rmf/pror/reqif10/configuration/provider/ProrSpecViewConfigurationItemProvider.java
@@ -113,6 +113,7 @@ public class ProrSpecViewConfigurationItemProvider
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(ConfigPackage.Literals.PROR_SPEC_VIEW_CONFIGURATION__COLUMNS);
+ childrenFeatures.add(ConfigPackage.Literals.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN);
}
return childrenFeatures;
}
@@ -169,6 +170,7 @@ public class ProrSpecViewConfigurationItemProvider
switch (notification.getFeatureID(ProrSpecViewConfiguration.class)) {
case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__COLUMNS:
+ case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -190,6 +192,34 @@ public class ProrSpecViewConfigurationItemProvider
(createChildParameter
(ConfigPackage.Literals.PROR_SPEC_VIEW_CONFIGURATION__COLUMNS,
ConfigFactory.eINSTANCE.createColumn()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (ConfigPackage.Literals.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN,
+ ConfigFactory.eINSTANCE.createColumn()));
+ }
+
+ /**
+ * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
+ Object childFeature = feature;
+ Object childObject = child;
+
+ boolean qualify =
+ childFeature == ConfigPackage.Literals.PROR_SPEC_VIEW_CONFIGURATION__COLUMNS ||
+ childFeature == ConfigPackage.Literals.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN;
+
+ if (qualify) {
+ return getString
+ ("_UI_CreateChild_text2",
+ new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
+ }
+ return super.getCreateChildText(owner, feature, child, selection);
}
/**
diff --git a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java
index f7ba5f2..95c05ce 100644
--- a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java
+++ b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java
@@ -230,6 +230,10 @@ public class ProrAgileGridViewer extends Viewer {
agileGrid.redraw();
}
+ /**
+ * This method sets a {@link Specification} as input and registers some
+ * listeners.
+ */
@Override
public void setInput(Object input) {
unregisterColumnListener();
@@ -297,18 +301,19 @@ public class ProrAgileGridViewer extends Viewer {
}
};
specViewConfig.eAdapters().add(emfColumnListener);
-
agColumnListener = new CellResizeAdapter() {
@Override
public void columnResized(int col, int newWidth) {
- // Can happen when the label column is resized.
- if (col < 0)
- return;
- Column column = specViewConfig.getColumns().get(col);
- Command cmd = SetCommand.create(editingDomain, column,
- ConfigPackage.Literals.COLUMN__WIDTH, newWidth);
-
- editingDomain.getCommandStack().execute(cmd);
+ // If the column index is -1 we resized the very first column,
+ // otherwise we resized a normal column
+ Column column = (col == -1) ? specViewConfig
+ .getLeftHeaderColumn() : specViewConfig.getColumns()
+ .get(col);
+ if (column != null) {
+ Command cmd = SetCommand.create(editingDomain, column,
+ ConfigPackage.Literals.COLUMN__WIDTH, newWidth);
+ editingDomain.getCommandStack().execute(cmd);
+ }
}
};
agileGrid.addCellResizeListener(agColumnListener);
@@ -450,6 +455,11 @@ public class ProrAgileGridViewer extends Viewer {
*/
private void updateColumnInformation() {
EList<Column> cols = specViewConfig.getColumns();
+ Column leftHeaderColumn = specViewConfig.getLeftHeaderColumn();
+ // Handle first column
+ if (leftHeaderColumn != null)
+ agileGrid.getLayoutAdvisor().setLeftHeaderWidth(
+ leftHeaderColumn.getWidth());
// One more column for the links
if (!agileGrid.isDisposed()) {
agileGrid.getLayoutAdvisor().setColumnCount(cols.size() + 1);
diff --git a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/Reqif10ModelWizard.java b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/Reqif10ModelWizard.java
index cc23eaa..74f6b1b 100644
--- a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/Reqif10ModelWizard.java
+++ b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/Reqif10ModelWizard.java
@@ -273,6 +273,11 @@ public class Reqif10ModelWizard extends Wizard implements INewWizard {
col.setWidth(400);
prorSpecViewConfiguration.getColumns().add(col);
+ Column leftHeaderColumn = ConfigFactory.eINSTANCE.createColumn();
+ leftHeaderColumn.setWidth(50);
+ leftHeaderColumn.setLabel("Left Header Column");
+ prorSpecViewConfiguration.setLeftHeaderColumn(leftHeaderColumn);
+
// Configure the Label configuration
ProrGeneralConfiguration generalConfig = ConfigFactory.eINSTANCE
.createProrGeneralConfiguration();
diff --git a/org.eclipse.rmf.pror.reqif10/model/configuration.ecore b/org.eclipse.rmf.pror.reqif10/model/configuration.ecore
index c9f809a..d172cf1 100644
--- a/org.eclipse.rmf.pror.reqif10/model/configuration.ecore
+++ b/org.eclipse.rmf.pror.reqif10/model/configuration.ecore
@@ -16,6 +16,8 @@
eType="ecore:EClass ../../org.eclipse.rmf.reqif10.model/model/reqif10.ecore#//Specification"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="columns" upperBound="-1"
eType="#//Column" containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="leftHeaderColumn" lowerBound="1"
+ eType="#//Column" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Column">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="label" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
diff --git a/org.eclipse.rmf.pror.reqif10/pror-standalone.target b/org.eclipse.rmf.pror.reqif10/pror-standalone.target
index b069d6e..084d1a8 100644
--- a/org.eclipse.rmf.pror.reqif10/pror-standalone.target
+++ b/org.eclipse.rmf.pror.reqif10/pror-standalone.target
@@ -1,23 +1,23 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?pde version="3.6"?>
-
-<target name="pror-standalone" sequenceNumber="75">
-<locations>
-<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.platform.ide" version="3.7.1.M20110909-1335"/>
-<repository location="http://download.eclipse.org/eclipse/updates/3.7/"/>
-</location>
-<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.emf.sdk.feature.group" version="2.7.0.v20110606-0949"/>
-<unit id="org.eclipse.emf.compare.feature.group" version="1.2.1.v20110913-0926"/>
-<unit id="org.eclipse.jdt.feature.group" version="3.7.1.r371_v20110810-0800-7z8gFcoFMLfTabvKsR5Qm9rBGEBK"/>
-<unit id="org.eclipse.equinox.sdk.feature.group" version="3.7.1.R37x_v20110907-7M7W8h8eNV4Vrz-hz01A7SL_MhZP"/>
-<repository location="http://download.eclipse.org/releases/indigo"/>
-</location>
-<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.agilemore.agilegrid.feature.feature.group" version="1.2.2"/>
-<repository location="http://agilegrid.sourceforge.net/agilegrid/updatesite-rmf/"/>
-</location>
-</locations>
-<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_22"/>
-</target>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?pde version="3.6"?>
+
+<target name="pror-standalone" sequenceNumber="75">
+<locations>
+<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.eclipse.platform.ide" version="3.7.1.M20110909-1335"/>
+<repository location="http://download.eclipse.org/eclipse/updates/3.7/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.eclipse.emf.sdk.feature.group" version="2.7.0.v20110606-0949"/>
+<unit id="org.eclipse.emf.compare.feature.group" version="1.2.1.v20110913-0926"/>
+<unit id="org.eclipse.jdt.feature.group" version="3.7.1.r371_v20110810-0800-7z8gFcoFMLfTabvKsR5Qm9rBGEBK"/>
+<unit id="org.eclipse.equinox.sdk.feature.group" version="3.7.1.R37x_v20110907-7M7W8h8eNV4Vrz-hz01A7SL_MhZP"/>
+<repository location="http://download.eclipse.org/releases/indigo"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.agilemore.agilegrid.feature.feature.group" version="1.2.2"/>
+<repository location="http://agilegrid.sourceforge.net/agilegrid/updatesite-rmf/"/>
+</location>
+</locations>
+<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_22"/>
+</target>
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ConfigPackage.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ConfigPackage.java
index 7d312a4..bc6dbd8 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ConfigPackage.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ConfigPackage.java
@@ -15,7 +15,6 @@ import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
-
import org.eclipse.rmf.reqif10.Reqif10Package;
/**
@@ -150,13 +149,22 @@ public interface ConfigPackage extends EPackage {
int PROR_SPEC_VIEW_CONFIGURATION__COLUMNS = 1;
/**
+ * The feature id for the '<em><b>Left Header Column</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN = 2;
+
+ /**
* The number of structural features of the '<em>Pror Spec View Configuration</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int PROR_SPEC_VIEW_CONFIGURATION_FEATURE_COUNT = 2;
+ int PROR_SPEC_VIEW_CONFIGURATION_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link org.eclipse.rmf.pror.reqif10.configuration.impl.ColumnImpl <em>Column</em>}' class.
@@ -384,6 +392,17 @@ public interface ConfigPackage extends EPackage {
EReference getProrSpecViewConfiguration_Columns();
/**
+ * Returns the meta object for the containment reference '{@link org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration#getLeftHeaderColumn <em>Left Header Column</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Left Header Column</em>'.
+ * @see org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration#getLeftHeaderColumn()
+ * @see #getProrSpecViewConfiguration()
+ * @generated
+ */
+ EReference getProrSpecViewConfiguration_LeftHeaderColumn();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.rmf.pror.reqif10.configuration.Column <em>Column</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -582,6 +601,14 @@ public interface ConfigPackage extends EPackage {
EReference PROR_SPEC_VIEW_CONFIGURATION__COLUMNS = eINSTANCE.getProrSpecViewConfiguration_Columns();
/**
+ * The meta object literal for the '<em><b>Left Header Column</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN = eINSTANCE.getProrSpecViewConfiguration_LeftHeaderColumn();
+
+ /**
* The meta object literal for the '{@link org.eclipse.rmf.pror.reqif10.configuration.impl.ColumnImpl <em>Column</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrPresentationConfiguration.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrPresentationConfiguration.java
index 1d60b01..a89d096 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrPresentationConfiguration.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrPresentationConfiguration.java
@@ -12,7 +12,6 @@
package org.eclipse.rmf.pror.reqif10.configuration;
import org.eclipse.emf.ecore.EObject;
-
import org.eclipse.rmf.reqif10.DatatypeDefinition;
/**
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrSpecViewConfiguration.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrSpecViewConfiguration.java
index 6f855d3..895ad80 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrSpecViewConfiguration.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrSpecViewConfiguration.java
@@ -12,9 +12,7 @@
package org.eclipse.rmf.pror.reqif10.configuration;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
-
import org.eclipse.rmf.reqif10.Specification;
/**
@@ -27,6 +25,7 @@ import org.eclipse.rmf.reqif10.Specification;
* <ul>
* <li>{@link org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration#getSpecification <em>Specification</em>}</li>
* <li>{@link org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration#getColumns <em>Columns</em>}</li>
+ * <li>{@link org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration#getLeftHeaderColumn <em>Left Header Column</em>}</li>
* </ul>
* </p>
*
@@ -77,4 +76,30 @@ public interface ProrSpecViewConfiguration extends EObject {
*/
EList<Column> getColumns();
+ /**
+ * Returns the value of the '<em><b>Left Header Column</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Left Header Column</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Left Header Column</em>' containment reference.
+ * @see #setLeftHeaderColumn(Column)
+ * @see org.eclipse.rmf.pror.reqif10.configuration.ConfigPackage#getProrSpecViewConfiguration_LeftHeaderColumn()
+ * @model containment="true" required="true"
+ * @generated
+ */
+ Column getLeftHeaderColumn();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration#getLeftHeaderColumn <em>Left Header Column</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Left Header Column</em>' containment reference.
+ * @see #getLeftHeaderColumn()
+ * @generated
+ */
+ void setLeftHeaderColumn(Column value);
+
} // ProrSpecViewConfiguration
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrToolExtension.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrToolExtension.java
index 5e0caca..d6133e0 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrToolExtension.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/ProrToolExtension.java
@@ -12,7 +12,6 @@
package org.eclipse.rmf.pror.reqif10.configuration;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.rmf.reqif10.ReqIfToolExtension;
/**
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ConfigPackageImpl.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ConfigPackageImpl.java
index 3a49da0..aca0d97 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ConfigPackageImpl.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ConfigPackageImpl.java
@@ -15,9 +15,7 @@ import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
-
import org.eclipse.emf.ecore.impl.EPackageImpl;
-
import org.eclipse.rmf.pror.reqif10.configuration.Column;
import org.eclipse.rmf.pror.reqif10.configuration.ConfigFactory;
import org.eclipse.rmf.pror.reqif10.configuration.ConfigPackage;
@@ -28,12 +26,8 @@ import org.eclipse.rmf.pror.reqif10.configuration.ProrPresentationConfigurations
import org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration;
import org.eclipse.rmf.pror.reqif10.configuration.ProrToolExtension;
import org.eclipse.rmf.reqif10.Reqif10Package;
-
-
import org.eclipse.rmf.reqif10.datatypes.DatatypesPackage;
-
import org.eclipse.rmf.reqif10.datatypes.impl.DatatypesPackageImpl;
-
import org.eclipse.rmf.reqif10.impl.Reqif10PackageImpl;
/**
@@ -229,6 +223,15 @@ public class ConfigPackageImpl extends EPackageImpl implements ConfigPackage {
* <!-- end-user-doc -->
* @generated
*/
+ public EReference getProrSpecViewConfiguration_LeftHeaderColumn() {
+ return (EReference)prorSpecViewConfigurationEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public EClass getColumn() {
return columnEClass;
}
@@ -359,6 +362,7 @@ public class ConfigPackageImpl extends EPackageImpl implements ConfigPackage {
prorSpecViewConfigurationEClass = createEClass(PROR_SPEC_VIEW_CONFIGURATION);
createEReference(prorSpecViewConfigurationEClass, PROR_SPEC_VIEW_CONFIGURATION__SPECIFICATION);
createEReference(prorSpecViewConfigurationEClass, PROR_SPEC_VIEW_CONFIGURATION__COLUMNS);
+ createEReference(prorSpecViewConfigurationEClass, PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN);
columnEClass = createEClass(COLUMN);
createEAttribute(columnEClass, COLUMN__LABEL);
@@ -419,6 +423,7 @@ public class ConfigPackageImpl extends EPackageImpl implements ConfigPackage {
initEClass(prorSpecViewConfigurationEClass, ProrSpecViewConfiguration.class, "ProrSpecViewConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getProrSpecViewConfiguration_Specification(), theReqif10Package.getSpecification(), null, "specification", null, 1, 1, ProrSpecViewConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getProrSpecViewConfiguration_Columns(), this.getColumn(), null, "columns", null, 0, -1, ProrSpecViewConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getProrSpecViewConfiguration_LeftHeaderColumn(), this.getColumn(), null, "leftHeaderColumn", null, 1, 1, ProrSpecViewConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(columnEClass, Column.class, "Column", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getColumn_Label(), ecorePackage.getEString(), "label", "<PLEASE SET LABEL>", 1, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrPresentationConfigurationImpl.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrPresentationConfigurationImpl.java
index 1691448..7ac66d1 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrPresentationConfigurationImpl.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrPresentationConfigurationImpl.java
@@ -12,13 +12,10 @@
package org.eclipse.rmf.pror.reqif10.configuration.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.rmf.pror.reqif10.configuration.ConfigPackage;
import org.eclipse.rmf.pror.reqif10.configuration.ProrPresentationConfiguration;
import org.eclipse.rmf.reqif10.DatatypeDefinition;
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrSpecViewConfigurationImpl.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrSpecViewConfigurationImpl.java
index 3fb1d75..be00403 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrSpecViewConfigurationImpl.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrSpecViewConfigurationImpl.java
@@ -15,18 +15,13 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
-
import org.eclipse.rmf.pror.reqif10.configuration.Column;
import org.eclipse.rmf.pror.reqif10.configuration.ConfigPackage;
import org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration;
@@ -42,6 +37,7 @@ import org.eclipse.rmf.reqif10.Specification;
* <ul>
* <li>{@link org.eclipse.rmf.pror.reqif10.configuration.impl.ProrSpecViewConfigurationImpl#getSpecification <em>Specification</em>}</li>
* <li>{@link org.eclipse.rmf.pror.reqif10.configuration.impl.ProrSpecViewConfigurationImpl#getColumns <em>Columns</em>}</li>
+ * <li>{@link org.eclipse.rmf.pror.reqif10.configuration.impl.ProrSpecViewConfigurationImpl#getLeftHeaderColumn <em>Left Header Column</em>}</li>
* </ul>
* </p>
*
@@ -69,6 +65,16 @@ public class ProrSpecViewConfigurationImpl extends EObjectImpl implements ProrSp
protected EList<Column> columns;
/**
+ * The cached value of the '{@link #getLeftHeaderColumn() <em>Left Header Column</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLeftHeaderColumn()
+ * @generated
+ * @ordered
+ */
+ protected Column leftHeaderColumn;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -142,11 +148,56 @@ public class ProrSpecViewConfigurationImpl extends EObjectImpl implements ProrSp
* <!-- end-user-doc -->
* @generated
*/
+ public Column getLeftHeaderColumn() {
+ return leftHeaderColumn;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetLeftHeaderColumn(Column newLeftHeaderColumn, NotificationChain msgs) {
+ Column oldLeftHeaderColumn = leftHeaderColumn;
+ leftHeaderColumn = newLeftHeaderColumn;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN, oldLeftHeaderColumn, newLeftHeaderColumn);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLeftHeaderColumn(Column newLeftHeaderColumn) {
+ if (newLeftHeaderColumn != leftHeaderColumn) {
+ NotificationChain msgs = null;
+ if (leftHeaderColumn != null)
+ msgs = ((InternalEObject)leftHeaderColumn).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN, null, msgs);
+ if (newLeftHeaderColumn != null)
+ msgs = ((InternalEObject)newLeftHeaderColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN, null, msgs);
+ msgs = basicSetLeftHeaderColumn(newLeftHeaderColumn, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN, newLeftHeaderColumn, newLeftHeaderColumn));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__COLUMNS:
return ((InternalEList<?>)getColumns()).basicRemove(otherEnd, msgs);
+ case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN:
+ return basicSetLeftHeaderColumn(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -164,6 +215,8 @@ public class ProrSpecViewConfigurationImpl extends EObjectImpl implements ProrSp
return basicGetSpecification();
case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__COLUMNS:
return getColumns();
+ case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN:
+ return getLeftHeaderColumn();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -184,6 +237,9 @@ public class ProrSpecViewConfigurationImpl extends EObjectImpl implements ProrSp
getColumns().clear();
getColumns().addAll((Collection<? extends Column>)newValue);
return;
+ case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN:
+ setLeftHeaderColumn((Column)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -202,6 +258,9 @@ public class ProrSpecViewConfigurationImpl extends EObjectImpl implements ProrSp
case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__COLUMNS:
getColumns().clear();
return;
+ case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN:
+ setLeftHeaderColumn((Column)null);
+ return;
}
super.eUnset(featureID);
}
@@ -218,6 +277,8 @@ public class ProrSpecViewConfigurationImpl extends EObjectImpl implements ProrSp
return specification != null;
case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__COLUMNS:
return columns != null && !columns.isEmpty();
+ case ConfigPackage.PROR_SPEC_VIEW_CONFIGURATION__LEFT_HEADER_COLUMN:
+ return leftHeaderColumn != null;
}
return super.eIsSet(featureID);
}
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrToolExtensionImpl.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrToolExtensionImpl.java
index 97a6bae..fa8c3d9 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrToolExtensionImpl.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/impl/ProrToolExtensionImpl.java
@@ -15,23 +15,17 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
-
import org.eclipse.rmf.pror.reqif10.configuration.ConfigPackage;
import org.eclipse.rmf.pror.reqif10.configuration.ProrGeneralConfiguration;
import org.eclipse.rmf.pror.reqif10.configuration.ProrPresentationConfigurations;
import org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration;
import org.eclipse.rmf.pror.reqif10.configuration.ProrToolExtension;
-
import org.eclipse.rmf.reqif10.impl.ReqIfToolExtensionImpl;
/**
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigAdapterFactory.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigAdapterFactory.java
index 5bab386..bafc6ce 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigAdapterFactory.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigAdapterFactory.java
@@ -13,12 +13,16 @@ package org.eclipse.rmf.pror.reqif10.configuration.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
-
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.rmf.pror.reqif10.configuration.*;
+import org.eclipse.rmf.pror.reqif10.configuration.Column;
+import org.eclipse.rmf.pror.reqif10.configuration.ConfigPackage;
+import org.eclipse.rmf.pror.reqif10.configuration.LabelConfiguration;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrGeneralConfiguration;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrPresentationConfiguration;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrPresentationConfigurations;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrToolExtension;
import org.eclipse.rmf.reqif10.ReqIfToolExtension;
@@ -229,13 +233,13 @@ public class ConfigAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.rmf.reqif10.ReqIfToolExtension <em>Req If Tool Extension</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.rmf.pror.reqif10.ReqIfToolExtension <em>Req If Tool Extension</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.eclipse.rmf.reqif10.ReqIfToolExtension
+ * @see org.eclipse.rmf.pror.reqif10.ReqIfToolExtension
* @generated
*/
public Adapter createReqIfToolExtensionAdapter() {
diff --git a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigSwitch.java b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigSwitch.java
index 5c2fd15..4c1a40f 100644
--- a/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigSwitch.java
+++ b/org.eclipse.rmf.pror.reqif10/src/org/eclipse/rmf/pror/reqif10/configuration/util/ConfigSwitch.java
@@ -13,10 +13,15 @@ package org.eclipse.rmf.pror.reqif10.configuration.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
-
import org.eclipse.emf.ecore.util.Switch;
-
-import org.eclipse.rmf.pror.reqif10.configuration.*;
+import org.eclipse.rmf.pror.reqif10.configuration.Column;
+import org.eclipse.rmf.pror.reqif10.configuration.ConfigPackage;
+import org.eclipse.rmf.pror.reqif10.configuration.LabelConfiguration;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrGeneralConfiguration;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrPresentationConfiguration;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrPresentationConfigurations;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrSpecViewConfiguration;
+import org.eclipse.rmf.pror.reqif10.configuration.ProrToolExtension;
import org.eclipse.rmf.reqif10.ReqIfToolExtension;