diff options
author | Olivier Prouvost | 2018-02-13 16:57:51 +0000 |
---|---|---|
committer | Olivier Prouvost | 2018-02-14 08:50:32 +0000 |
commit | a4c94b91423e7cefd004c2884727838cc01f58b7 (patch) | |
tree | e7f0962cf26b15e143ddd70d4ebf55adfcc1cebb | |
parent | b0bf821bb8da5032d85de94076972ca3923d98d3 (diff) | |
download | eclipse.platform.ui-a4c94b91423e7cefd004c2884727838cc01f58b7.tar.gz eclipse.platform.ui-a4c94b91423e7cefd004c2884727838cc01f58b7.tar.xz eclipse.platform.ui-a4c94b91423e7cefd004c2884727838cc01f58b7.zip |
Bug 509868 - Mark MInput and MInputPart for deletion
Change-Id: I6349b24ff472446f62b054962b52de0a62ee085a
Signed-off-by: Olivier Prouvost <olivier.prouvost@opcoach.com>
2 files changed, 78 insertions, 35 deletions
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MInput.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MInput.java index 174343b6042..a48881cb73f 100644 --- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MInput.java +++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MInput.java @@ -7,62 +7,72 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Olivier Prouvost <olivier.prouvost@opcoach.com> - Bug 509868 */ package org.eclipse.e4.ui.model.application.ui; /** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Input</b></em>'. - * <!-- end-user-doc --> + * <!-- begin-user-doc --> A representation of the model object + * '<em><b>Input</b></em>'. <!-- end-user-doc --> * * <!-- begin-model-doc --> * <p> - * This class should be mixed into UI elements such as InputParts that need to + * This class should be mixed into UI elements such as InputParts that need to * reference an external resource (files...). * </p> + * * @since 1.0 * @noimplement This interface is not intended to be implemented by clients. - * @deprecated No longer used - * <!-- end-model-doc --> - * - * <p> - * The following features are supported: - * </p> - * <ul> - * <li>{@link org.eclipse.e4.ui.model.application.ui.MInput#getInputURI <em>Input URI</em>}</li> - * </ul> + * @deprecated No longer used <!-- end-model-doc --> * + * @noreference This interface is not intended to be referenced by clients. + * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug + * 509868</a> * @model interface="true" abstract="true" - * @generated + * @generated NOT */ @Deprecated public interface MInput { /** - * Returns the value of the '<em><b>Input URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> + * Returns the value of the '<em><b>Input URI</b></em>' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> * <p> - * The specification of the particular resource's location or other meta information. - * The format of this field will be interpreted by the class using it (i.e. a Part). + * The specification of the particular resource's location or other meta + * information. The format of this field will be interpreted by the class using + * it (i.e. a Part). * </p> * <!-- end-model-doc --> + * * @return the value of the '<em>Input URI</em>' attribute. * @see #setInputURI(String) + * @deprecated No longer used * @model - * @generated + * @generated NOT + * @noreference + * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug + * 509868</a> + * */ + @Deprecated String getInputURI(); /** - * Sets the value of the '{@link org.eclipse.e4.ui.model.application.ui.MInput#getInputURI <em>Input URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Input URI</em>' attribute. + * Sets the value of the + * '{@link org.eclipse.e4.ui.model.application.ui.MInput#getInputURI <em>Input + * URI</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Input URI</em>' attribute. * @see #getInputURI() - * @generated + * @deprecated No longer used + * @generated NOT + * @noreference + * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug + * 509868</a> + * */ + @Deprecated void setInputURI(String value); } // MInput diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/InputPartImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/InputPartImpl.java index 235f6ef0156..505b27a5cd9 100644 --- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/InputPartImpl.java +++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/InputPartImpl.java @@ -1,4 +1,5 @@ package org.eclipse.e4.ui.model.application.ui.basic.impl; + import org.eclipse.e4.ui.model.application.ui.MInput; import org.eclipse.e4.ui.model.application.ui.basic.MInputPart; import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; @@ -32,34 +33,40 @@ public class InputPartImpl extends PartImpl implements MInputPart { * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #getInputURI() + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @ordered * @noreference This field is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ + @Deprecated protected static final String INPUT_URI_EDEFAULT = null; /** * The cached value of the '{@link #getInputURI() <em>Input URI</em>}' * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #getInputURI() + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @ordered * @noreference This field is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ + @Deprecated protected String inputURI = INPUT_URI_EDEFAULT; /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This constructor is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ + @Deprecated protected InputPartImpl() { super(); } @@ -67,12 +74,14 @@ public class InputPartImpl extends PartImpl implements MInputPart { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ @Override + @Deprecated protected EClass eStaticClass() { return BasicPackageImpl.Literals.INPUT_PART; } @@ -80,11 +89,13 @@ public class InputPartImpl extends PartImpl implements MInputPart { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ + @Deprecated public String getInputURI() { return inputURI; } @@ -92,27 +103,32 @@ public class InputPartImpl extends PartImpl implements MInputPart { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ + @Deprecated public void setInputURI(String newInputURI) { String oldInputURI = inputURI; inputURI = newInputURI; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, BasicPackageImpl.INPUT_PART__INPUT_URI, oldInputURI, inputURI)); + eNotify(new ENotificationImpl(this, Notification.SET, BasicPackageImpl.INPUT_PART__INPUT_URI, oldInputURI, + inputURI)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ @Override + @Deprecated public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case BasicPackageImpl.INPUT_PART__INPUT_URI: @@ -124,16 +140,18 @@ public class InputPartImpl extends PartImpl implements MInputPart { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ @Override + @Deprecated public void eSet(int featureID, Object newValue) { switch (featureID) { case BasicPackageImpl.INPUT_PART__INPUT_URI: - setInputURI((String)newValue); + setInputURI((String) newValue); return; } super.eSet(featureID, newValue); @@ -142,12 +160,14 @@ public class InputPartImpl extends PartImpl implements MInputPart { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ @Override + @Deprecated public void eUnset(int featureID) { switch (featureID) { case BasicPackageImpl.INPUT_PART__INPUT_URI: @@ -160,12 +180,14 @@ public class InputPartImpl extends PartImpl implements MInputPart { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ @Override + @Deprecated public boolean eIsSet(int featureID) { switch (featureID) { case BasicPackageImpl.INPUT_PART__INPUT_URI: @@ -177,17 +199,21 @@ public class InputPartImpl extends PartImpl implements MInputPart { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ @Override + @Deprecated public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { if (baseClass == MInput.class) { switch (derivedFeatureID) { - case BasicPackageImpl.INPUT_PART__INPUT_URI: return UiPackageImpl.INPUT__INPUT_URI; - default: return -1; + case BasicPackageImpl.INPUT_PART__INPUT_URI: + return UiPackageImpl.INPUT__INPUT_URI; + default: + return -1; } } return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); @@ -196,37 +222,44 @@ public class InputPartImpl extends PartImpl implements MInputPart { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ @Override + @Deprecated public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { if (baseClass == MInput.class) { switch (baseFeatureID) { - case UiPackageImpl.INPUT__INPUT_URI: return BasicPackageImpl.INPUT_PART__INPUT_URI; - default: return -1; + case UiPackageImpl.INPUT__INPUT_URI: + return BasicPackageImpl.INPUT_PART__INPUT_URI; + default: + return -1; } } return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); } - + /** * <!-- begin-user-doc --> <!-- end-user-doc --> * + * @deprecated See {@link MInputPart model documentation} for details. * @generated NOT * @noreference This method is not intended to be referenced by clients. * @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=509868">Bug * 509868</a> */ @Override + @Deprecated public String toString() { - if (eIsProxy()) return super.toString(); + if (eIsProxy()) + return super.toString(); StringBuilder result = new StringBuilder(super.toString()); result.append(" (inputURI: "); //$NON-NLS-1$ result.append(inputURI); result.append(')'); return result.toString(); } -} //InputPartImpl
\ No newline at end of file +} // InputPartImpl
\ No newline at end of file |