Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Jastram2012-10-25 14:31:36 +0000
committerMichael Jastram2012-10-25 14:31:36 +0000
commitdb783c1003d31f694a69d2378e0485181a3a34d1 (patch)
treee3cb2fb042525aa2ffc8e385c44a18867782878e /org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse
parent05c84b6a10606c110b19e1080fe3789bb0a341a0 (diff)
downloadorg.eclipse.rmf-db783c1003d31f694a69d2378e0485181a3a34d1.tar.gz
org.eclipse.rmf-db783c1003d31f694a69d2378e0485181a3a34d1.tar.xz
org.eclipse.rmf-db783c1003d31f694a69d2378e0485181a3a34d1.zip
Step 3 package name refactoring
Diffstat (limited to 'org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse')
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlineConfiguration.java61
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlineFactory.java51
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlinePackage.java168
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlineConfigurationImpl.java169
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlineFactoryImpl.java104
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlinePackageImpl.java196
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineConfigurationItemProvider.java290
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineEditPlugin.java99
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineItemProviderAdapterFactory.java208
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/ui/HeadlineCellRenderer.java74
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/ui/HeadlinePresentationService.java25
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/util/HeadlineAdapterFactory.java146
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/util/HeadlineSwitch.java135
-rw-r--r--org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/validation/HeadlineConfigurationValidator.java25
14 files changed, 1751 insertions, 0 deletions
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlineConfiguration.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlineConfiguration.java
new file mode 100644
index 00000000..ed378ed0
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlineConfiguration.java
@@ -0,0 +1,61 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline;
+
+import org.eclipse.rmf.reqif10.pror.configuration.ProrPresentationConfiguration;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Configuration</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration#getSize <em>Size</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage#getHeadlineConfiguration()
+ * @model
+ * @generated
+ */
+public interface HeadlineConfiguration extends ProrPresentationConfiguration {
+ /**
+ * Returns the value of the '<em><b>Size</b></em>' attribute.
+ * The default value is <code>"14"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Size</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Size</em>' attribute.
+ * @see #setSize(int)
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage#getHeadlineConfiguration_Size()
+ * @model default="14" required="true"
+ * @generated
+ */
+ int getSize();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration#getSize <em>Size</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Size</em>' attribute.
+ * @see #getSize()
+ * @generated
+ */
+ void setSize(int value);
+
+} // HeadlineConfiguration
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlineFactory.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlineFactory.java
new file mode 100644
index 00000000..829206dd
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlineFactory.java
@@ -0,0 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage
+ * @generated
+ */
+public interface HeadlineFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ HeadlineFactory eINSTANCE = org.eclipse.rmf.reqif10.pror.presentation.headline.impl.HeadlineFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Configuration</em>'.
+ * @generated
+ */
+ HeadlineConfiguration createHeadlineConfiguration();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ HeadlinePackage getHeadlinePackage();
+
+} //HeadlineFactory
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlinePackage.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlinePackage.java
new file mode 100644
index 00000000..8115a5c8
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/HeadlinePackage.java
@@ -0,0 +1,168 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.rmf.reqif10.pror.configuration.ConfigurationPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface HeadlinePackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "headline";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://pror.org/presentation/headline";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "headline";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ HeadlinePackage eINSTANCE = org.eclipse.rmf.reqif10.pror.presentation.headline.impl.HeadlinePackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.rmf.reqif10.pror.presentation.headline.impl.HeadlineConfigurationImpl <em>Configuration</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.impl.HeadlineConfigurationImpl
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.impl.HeadlinePackageImpl#getHeadlineConfiguration()
+ * @generated
+ */
+ int HEADLINE_CONFIGURATION = 0;
+
+ /**
+ * The feature id for the '<em><b>Datatype</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HEADLINE_CONFIGURATION__DATATYPE = ConfigurationPackage.PROR_PRESENTATION_CONFIGURATION__DATATYPE;
+
+ /**
+ * The feature id for the '<em><b>Size</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HEADLINE_CONFIGURATION__SIZE = ConfigurationPackage.PROR_PRESENTATION_CONFIGURATION_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Configuration</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HEADLINE_CONFIGURATION_FEATURE_COUNT = ConfigurationPackage.PROR_PRESENTATION_CONFIGURATION_FEATURE_COUNT + 1;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration <em>Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Configuration</em>'.
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration
+ * @generated
+ */
+ EClass getHeadlineConfiguration();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration#getSize <em>Size</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Size</em>'.
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration#getSize()
+ * @see #getHeadlineConfiguration()
+ * @generated
+ */
+ EAttribute getHeadlineConfiguration_Size();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ HeadlineFactory getHeadlineFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.eclipse.rmf.reqif10.pror.presentation.headline.impl.HeadlineConfigurationImpl <em>Configuration</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.impl.HeadlineConfigurationImpl
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.impl.HeadlinePackageImpl#getHeadlineConfiguration()
+ * @generated
+ */
+ EClass HEADLINE_CONFIGURATION = eINSTANCE.getHeadlineConfiguration();
+
+ /**
+ * The meta object literal for the '<em><b>Size</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HEADLINE_CONFIGURATION__SIZE = eINSTANCE.getHeadlineConfiguration_Size();
+
+ }
+
+} //HeadlinePackage
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlineConfigurationImpl.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlineConfigurationImpl.java
new file mode 100644
index 00000000..8d631085
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlineConfigurationImpl.java
@@ -0,0 +1,169 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.rmf.reqif10.pror.configuration.impl.ProrPresentationConfigurationImpl;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Configuration</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.rmf.reqif10.pror.presentation.headline.impl.HeadlineConfigurationImpl#getSize <em>Size</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class HeadlineConfigurationImpl extends ProrPresentationConfigurationImpl implements HeadlineConfiguration {
+ /**
+ * The default value of the '{@link #getSize() <em>Size</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSize()
+ * @generated
+ * @ordered
+ */
+ protected static final int SIZE_EDEFAULT = 14;
+
+ /**
+ * The cached value of the '{@link #getSize() <em>Size</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSize()
+ * @generated
+ * @ordered
+ */
+ protected int size = SIZE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HeadlineConfigurationImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return HeadlinePackage.Literals.HEADLINE_CONFIGURATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getSize() {
+ return size;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSize(int newSize) {
+ int oldSize = size;
+ size = newSize;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, HeadlinePackage.HEADLINE_CONFIGURATION__SIZE, oldSize, size));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case HeadlinePackage.HEADLINE_CONFIGURATION__SIZE:
+ return getSize();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case HeadlinePackage.HEADLINE_CONFIGURATION__SIZE:
+ setSize((Integer)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case HeadlinePackage.HEADLINE_CONFIGURATION__SIZE:
+ setSize(SIZE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case HeadlinePackage.HEADLINE_CONFIGURATION__SIZE:
+ return size != SIZE_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (size: ");
+ result.append(size);
+ result.append(')');
+ return result.toString();
+ }
+
+} //HeadlineConfigurationImpl
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlineFactoryImpl.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlineFactoryImpl.java
new file mode 100644
index 00000000..73e875c6
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlineFactoryImpl.java
@@ -0,0 +1,104 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.*;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class HeadlineFactoryImpl extends EFactoryImpl implements HeadlineFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static HeadlineFactory init() {
+ try {
+ HeadlineFactory theHeadlineFactory = (HeadlineFactory)EPackage.Registry.INSTANCE.getEFactory("http://pror.org/presentation/headline");
+ if (theHeadlineFactory != null) {
+ return theHeadlineFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new HeadlineFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HeadlineFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case HeadlinePackage.HEADLINE_CONFIGURATION: return createHeadlineConfiguration();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HeadlineConfiguration createHeadlineConfiguration() {
+ HeadlineConfigurationImpl headlineConfiguration = new HeadlineConfigurationImpl();
+ return headlineConfiguration;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HeadlinePackage getHeadlinePackage() {
+ return (HeadlinePackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static HeadlinePackage getPackage() {
+ return HeadlinePackage.eINSTANCE;
+ }
+
+} //HeadlineFactoryImpl
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlinePackageImpl.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlinePackageImpl.java
new file mode 100644
index 00000000..b9487864
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/impl/HeadlinePackageImpl.java
@@ -0,0 +1,196 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.eclipse.rmf.reqif10.ReqIF10Package;
+import org.eclipse.rmf.reqif10.datatypes.DatatypesPackage;
+import org.eclipse.rmf.reqif10.pror.configuration.ConfigurationPackage;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineFactory;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class HeadlinePackageImpl extends EPackageImpl implements HeadlinePackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass headlineConfigurationEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private HeadlinePackageImpl() {
+ super(eNS_URI, HeadlineFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link HeadlinePackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static HeadlinePackage init() {
+ if (isInited) return (HeadlinePackage)EPackage.Registry.INSTANCE.getEPackage(HeadlinePackage.eNS_URI);
+
+ // Obtain or create and register package
+ HeadlinePackageImpl theHeadlinePackage = (HeadlinePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HeadlinePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HeadlinePackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ ConfigurationPackage.eINSTANCE.eClass();
+ ReqIF10Package.eINSTANCE.eClass();
+ DatatypesPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theHeadlinePackage.createPackageContents();
+
+ // Initialize created meta-data
+ theHeadlinePackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theHeadlinePackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(HeadlinePackage.eNS_URI, theHeadlinePackage);
+ return theHeadlinePackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getHeadlineConfiguration() {
+ return headlineConfigurationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHeadlineConfiguration_Size() {
+ return (EAttribute)headlineConfigurationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HeadlineFactory getHeadlineFactory() {
+ return (HeadlineFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ headlineConfigurationEClass = createEClass(HEADLINE_CONFIGURATION);
+ createEAttribute(headlineConfigurationEClass, HEADLINE_CONFIGURATION__SIZE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ ConfigurationPackage theConfigPackage = (ConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(ConfigurationPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ headlineConfigurationEClass.getESuperTypes().add(theConfigPackage.getProrPresentationConfiguration());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(headlineConfigurationEClass, HeadlineConfiguration.class, "HeadlineConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getHeadlineConfiguration_Size(), ecorePackage.getEInt(), "size", "14", 1, 1, HeadlineConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //HeadlinePackageImpl
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineConfigurationItemProvider.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineConfigurationItemProvider.java
new file mode 100644
index 00000000..3ccd88b2
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineConfigurationItemProvider.java
@@ -0,0 +1,290 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline.provider;
+
+
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+
+import org.agilemore.agilegrid.AgileGrid;
+import org.agilemore.agilegrid.CellEditor;
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.impl.AdapterImpl;
+import org.eclipse.emf.common.notify.impl.NotificationImpl;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.eclipse.rmf.reqif10.AttributeValue;
+import org.eclipse.rmf.reqif10.DatatypeDefinition;
+import org.eclipse.rmf.reqif10.SpecHierarchy;
+import org.eclipse.rmf.reqif10.Specification;
+import org.eclipse.rmf.reqif10.common.util.ReqIF10Util;
+import org.eclipse.rmf.reqif10.pror.configuration.ProrPresentationConfiguration;
+import org.eclipse.rmf.reqif10.pror.configuration.provider.ProrPresentationConfigurationItemProvider;
+import org.eclipse.rmf.reqif10.pror.editor.presentation.service.IProrCellRenderer;
+import org.eclipse.rmf.reqif10.pror.editor.presentation.service.PresentationEditorInterface;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.ui.HeadlineCellRenderer;
+import org.eclipse.rmf.reqif10.util.ReqIF10Switch;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class HeadlineConfigurationItemProvider
+ extends ProrPresentationConfigurationItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource,
+ PresentationEditorInterface {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HeadlineConfigurationItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addSizePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Size feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSizePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HeadlineConfiguration_size_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HeadlineConfiguration_size_feature", "_UI_HeadlineConfiguration_type"),
+ HeadlinePackage.Literals.HEADLINE_CONFIGURATION__SIZE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns HeadlineConfiguration.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated NOT
+ */
+ @Override
+ public Object getImage(Object object) {
+ return super.getImage(object);
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated NOT
+ */
+ @Override
+ public String getText(Object object) {
+ HeadlineConfiguration headlineConfiguration = (HeadlineConfiguration)object;
+ String[] subst = new String[2];
+ subst[0] = headlineConfiguration.getDatatype() == null ? "(PLEASE SET TYPE)"
+ : headlineConfiguration.getDatatype().getLongName();
+ subst[1] = headlineConfiguration.getSize() + "";
+ return getString("_UI_HeadlineConfiguration_type", subst);
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(HeadlineConfiguration.class)) {
+ case HeadlinePackage.HEADLINE_CONFIGURATION__SIZE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return HeadlineEditPlugin.INSTANCE;
+ }
+
+ public void registerPresentationConfiguration(ProrPresentationConfiguration config,
+ EditingDomain editingDomain) {
+ // No action required.
+ }
+
+ public void unregisterPresentationConfiguration(ProrPresentationConfiguration config) {
+ // No action required.
+ }
+
+ public Command handleDragAndDrop(Collection<?> source, Object target,
+ EditingDomain editingDomain, int operation) {
+ // No dnd support
+ return null;
+ }
+
+ public String getLabel(AttributeValue av) {
+ // no custom label
+ return null;
+ }
+
+ /**
+ * Allow editing
+ */
+ public boolean canEdit() {
+ return true;
+ }
+
+ private HeadlineCellRenderer headlineCellRenderer;
+
+ /**
+ * Lazily creates the renderer and tracks them on a per-configuration basis.
+ */
+ public IProrCellRenderer getCellRenderer(final AttributeValue av) {
+ if (headlineCellRenderer == null) {
+ headlineCellRenderer = createRenderer();
+ }
+ return headlineCellRenderer;
+ }
+
+ private HeadlineCellRenderer createRenderer() {
+ // Only works if this itemProvider is stateful (via model generator)
+ final HeadlineConfiguration config = (HeadlineConfiguration) getTarget();
+ DatatypeDefinition dd = config.getDatatype();
+
+
+ headlineCellRenderer = new HeadlineCellRenderer(dd.getIdentifier());
+ headlineCellRenderer.setFontSize(config.getSize());
+
+ // Register for notifications
+ config.eAdapters().add(new AdapterImpl() {
+ @Override
+ public void notifyChanged(Notification msg) {
+ // React to size changes
+ switch (msg.getFeatureID(HeadlineConfiguration.class)) {
+ case HeadlinePackage.HEADLINE_CONFIGURATION__SIZE:
+ headlineCellRenderer.setFontSize(msg.getNewIntValue());
+ refreshUi(config.getDatatype());
+ break;
+ case HeadlinePackage.HEADLINE_CONFIGURATION__DATATYPE:
+ if (msg.getNewValue() != null)
+ headlineCellRenderer
+ .setDatatypeId(((DatatypeDefinition) msg
+ .getNewValue()).getIdentifier());
+ refreshUi(config.getDatatype());
+ default:
+ break;
+ }
+ }
+ });
+
+ return headlineCellRenderer;
+ }
+
+ public CellEditor getCellEditor(AgileGrid agileGrid,
+ EditingDomain editingDomain, AttributeValue av,
+ Object affectedObject) {
+ // No custom cell editor
+ return null;
+ }
+
+ /**
+ * Called when the font size or {@link DatatypeDefinition} change.
+ */
+ @SuppressWarnings("rawtypes")
+ private void refreshUi(DatatypeDefinition dd) {
+ if (dd == null)
+ return;
+ ReqIF10Switch visitor = new ReqIF10Switch() {
+ @Override
+ public Object caseSpecHierarchy(SpecHierarchy object) {
+ Notification n = new NotificationImpl(Notification.SET,
+ object.getObject(), object.getObject());
+ object.eNotify(new ViewerNotification(n));
+ return super.caseSpecHierarchy(object);
+ }
+ };
+ EList<Specification> roots = ReqIF10Util.getReqIF(dd).getCoreContent()
+ .getSpecifications();
+ for (Iterator i = EcoreUtil.getAllProperContents(roots, true); i
+ .hasNext();) {
+ visitor.doSwitch((EObject) i.next());
+ }
+ }
+
+}
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineEditPlugin.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineEditPlugin.java
new file mode 100644
index 00000000..b5bd5ca6
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineEditPlugin.java
@@ -0,0 +1,99 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.rmf.pror.reqif10.provider.Reqif10EditPlugin;
+
+/**
+ * This is the central singleton for the Headline edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class HeadlineEditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final HeadlineEditPlugin INSTANCE = new HeadlineEditPlugin();
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Implementation plugin;
+
+ /**
+ * Create the instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HeadlineEditPlugin() {
+ super
+ (new ResourceLocator [] {
+ Reqif10EditPlugin.INSTANCE,
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineItemProviderAdapterFactory.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineItemProviderAdapterFactory.java
new file mode 100644
index 00000000..72050d19
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/provider/HeadlineItemProviderAdapterFactory.java
@@ -0,0 +1,208 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline.provider;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.edit.provider.ChangeNotifier;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IChangeNotifier;
+import org.eclipse.emf.edit.provider.IDisposable;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.INotifyChangedListener;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.util.HeadlineAdapterFactory;
+
+
+/**
+ * This is the factory that is used to provide the interfaces needed to support Viewers.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters also support Eclipse property sheets.
+ * Note that most of the adapters are shared among multiple instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class HeadlineItemProviderAdapterFactory extends HeadlineAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Object> supportedTypes = new ArrayList<Object>();
+
+ /**
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HeadlineItemProviderAdapterFactory() {
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HeadlineConfigurationItemProvider headlineConfigurationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createHeadlineConfigurationAdapter() {
+ if (headlineConfigurationItemProvider == null) {
+ headlineConfigurationItemProvider = new HeadlineConfigurationItemProvider(this);
+ }
+
+ return headlineConfigurationItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (headlineConfigurationItemProvider != null) headlineConfigurationItemProvider.dispose();
+ }
+
+}
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/ui/HeadlineCellRenderer.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/ui/HeadlineCellRenderer.java
new file mode 100644
index 00000000..12aecb78
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/ui/HeadlineCellRenderer.java
@@ -0,0 +1,74 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+package org.eclipse.rmf.reqif10.pror.presentation.headline.ui;
+
+import org.eclipse.jface.resource.FontRegistry;
+import org.eclipse.jface.resource.JFaceResources;
+import org.eclipse.rmf.reqif10.AttributeValue;
+import org.eclipse.rmf.reqif10.AttributeValueSimple;
+import org.eclipse.rmf.reqif10.common.util.ReqIF10Util;
+import org.eclipse.rmf.reqif10.pror.editor.presentation.service.IProrCellRenderer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.GC;
+import org.eclipse.swt.graphics.Rectangle;
+
+public class HeadlineCellRenderer implements IProrCellRenderer {
+
+ private String fontHandle = "pror_headline_font-";
+ private Font font;
+ private int fontSize;
+ private boolean fontSizeChanged = false;
+
+ public HeadlineCellRenderer(String identifier) {
+ this.fontHandle = "pror_headline_font-" + identifier;
+ }
+
+ public void setDatatypeId(String identifier) {
+ this.fontHandle = "pror_headline_font-" + identifier;
+ setFontSize(fontSize);
+ }
+
+ public void setFontSize(final int fontSize) {
+ this.fontSize = fontSize;
+ this.fontSizeChanged = true;
+ }
+
+ public int doDrawCellContent(GC gc, Rectangle rect, Object value) {
+ AttributeValueSimple av = (AttributeValueSimple) value;
+ String text = " ";
+ if (av != null && ReqIF10Util.getTheValue(av) != null) {
+ text = ReqIF10Util.getTheValue(av).toString();
+ }
+
+ if (font == null || font.isDisposed() || fontSizeChanged) {
+ FontRegistry fr = JFaceResources.getFontRegistry();
+ FontData[] fontData = { new FontData("Arial", fontSize, SWT.BOLD) };
+ fr.put(fontHandle + this, fontData);
+ font = fr.get(fontHandle + this);
+ fontSizeChanged = false;
+ }
+
+ gc.setFont(font);
+ gc.drawText(text, rect.x, rect.y);
+ return gc.textExtent(text).y;
+ }
+
+ public String doDrawHtmlContent(AttributeValue value) {
+ AttributeValueSimple av = (AttributeValueSimple) value;
+ return "<div style='font-size: " + fontSize
+ + "pt; font-weight: bold; padding-top: 4pt;'>"
+ + ReqIF10Util.getTheValue(av) + "</div>";
+ }
+
+}
+
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/ui/HeadlinePresentationService.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/ui/HeadlinePresentationService.java
new file mode 100644
index 00000000..a459a38e
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/ui/HeadlinePresentationService.java
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+package org.eclipse.rmf.reqif10.pror.presentation.headline.ui;
+
+import org.eclipse.rmf.reqif10.pror.configuration.ProrPresentationConfiguration;
+import org.eclipse.rmf.reqif10.pror.editor.presentation.service.AbstractPresentationService;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineFactory;
+
+public class HeadlinePresentationService extends AbstractPresentationService {
+
+
+ @Override
+ public ProrPresentationConfiguration getConfigurationInstance() {
+ return HeadlineFactory.eINSTANCE.createHeadlineConfiguration();
+ }
+
+}
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/util/HeadlineAdapterFactory.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/util/HeadlineAdapterFactory.java
new file mode 100644
index 00000000..cb54a4e1
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/util/HeadlineAdapterFactory.java
@@ -0,0 +1,146 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline.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.reqif10.pror.configuration.ProrPresentationConfiguration;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage
+ * @generated
+ */
+public class HeadlineAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static HeadlinePackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HeadlineAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = HeadlinePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HeadlineSwitch<Adapter> modelSwitch =
+ new HeadlineSwitch<Adapter>() {
+ @Override
+ public Adapter caseHeadlineConfiguration(HeadlineConfiguration object) {
+ return createHeadlineConfigurationAdapter();
+ }
+ @Override
+ public Adapter caseProrPresentationConfiguration(ProrPresentationConfiguration object) {
+ return createProrPresentationConfigurationAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration <em>Configuration</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.pror.presentation.headline.HeadlineConfiguration
+ * @generated
+ */
+ public Adapter createHeadlineConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.rmf.reqif10.pror.configuration.ProrPresentationConfiguration <em>Pror Presentation Configuration</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.pror.configuration.ProrPresentationConfiguration
+ * @generated
+ */
+ public Adapter createProrPresentationConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //HeadlineAdapterFactory
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/util/HeadlineSwitch.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/util/HeadlineSwitch.java
new file mode 100644
index 00000000..789dacff
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/util/HeadlineSwitch.java
@@ -0,0 +1,135 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.util.Switch;
+import org.eclipse.rmf.reqif10.pror.configuration.ProrPresentationConfiguration;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration;
+import org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlinePackage
+ * @generated
+ */
+public class HeadlineSwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static HeadlinePackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HeadlineSwitch() {
+ if (modelPackage == null) {
+ modelPackage = HeadlinePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @parameter ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case HeadlinePackage.HEADLINE_CONFIGURATION: {
+ HeadlineConfiguration headlineConfiguration = (HeadlineConfiguration)theEObject;
+ T result = caseHeadlineConfiguration(headlineConfiguration);
+ if (result == null) result = caseProrPresentationConfiguration(headlineConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHeadlineConfiguration(HeadlineConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Pror Presentation Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Pror Presentation Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseProrPresentationConfiguration(ProrPresentationConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //HeadlineSwitch
diff --git a/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/validation/HeadlineConfigurationValidator.java b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/validation/HeadlineConfigurationValidator.java
new file mode 100644
index 00000000..c9add3fa
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.presentation.headline/src/org/eclipse/rmf/reqif10/pror/presentation/headline/validation/HeadlineConfigurationValidator.java
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * 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:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rmf.reqif10.pror.presentation.headline.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.rmf.reqif10.pror.presentation.headline.HeadlineConfiguration}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface HeadlineConfigurationValidator {
+ boolean validate();
+
+ boolean validateSize(int value);
+}

Back to the top