Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
correct source formatting (eclipse-mylyn/org.eclipse.mylyn.commons#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeckerFrank committed Dec 14, 2022
1 parent 12c2115 commit 6edbf9e
Show file tree
Hide file tree
Showing 100 changed files with 3,524 additions and 4,552 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public interface IBuildElement {
IStatus getElementStatus();

/**
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IBuildElement#getElementStatus
* <em>Element Status</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IBuildElement#getElementStatus <em>Element
* Status</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>Element Status</em>' attribute.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public interface IBuildParameterDefinition extends IParameterDefinition {
String getBuildPlanId();

/**
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IBuildParameterDefinition#getBuildPlanId
* <em>Build Plan Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IBuildParameterDefinition#getBuildPlanId <em>Build
* Plan Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>Build Plan Id</em>' attribute.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public interface IBuildServer extends IBuildElement {
String getConnectorKind();

/**
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IBuildServer#getConnectorKind
* <em>Connector Kind</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IBuildServer#getConnectorKind <em>Connector
* Kind</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>Connector Kind</em>' attribute.
Expand All @@ -93,8 +93,8 @@ public interface IBuildServer extends IBuildElement {
String getRepositoryUrl();

/**
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IBuildServer#getRepositoryUrl
* <em>Repository Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IBuildServer#getRepositoryUrl <em>Repository
* Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>Repository Url</em>' attribute.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public interface IChangeArtifact {
String getRelativePath();

/**
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IChangeArtifact#getRelativePath
* <em>Relative Path</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IChangeArtifact#getRelativePath <em>Relative
* Path</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>Relative Path</em>' attribute.
Expand All @@ -92,8 +92,8 @@ public interface IChangeArtifact {
String getPrevRevision();

/**
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IChangeArtifact#getPrevRevision
* <em>Prev Revision</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
* Sets the value of the '{@link org.eclipse.mylyn.builds.core.IChangeArtifact#getPrevRevision <em>Prev
* Revision</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>Prev Revision</em>' attribute.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
* <ul>
* <li>{@link org.eclipse.mylyn.builds.core.IParameterDefinition#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.mylyn.builds.core.IParameterDefinition#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.mylyn.builds.core.IParameterDefinition#getContainingBuildPlan <em>Containing Build Plan</em>}</li>
* <li>{@link org.eclipse.mylyn.builds.core.IParameterDefinition#getContainingBuildPlan <em>Containing Build
* Plan</em>}</li>
* </ul>
* </p>
*
Expand Down Expand Up @@ -77,8 +78,8 @@ public interface IParameterDefinition {

/**
* Returns the value of the '<em><b>Containing Build Plan</b></em>' container reference. It is bidirectional and its
* opposite is '{@link org.eclipse.mylyn.builds.core.IBuildPlan#getParameterDefinitions
* <em>Parameter Definitions</em>}'. <!-- begin-user-doc -->
* opposite is '{@link org.eclipse.mylyn.builds.core.IBuildPlan#getParameterDefinitions <em>Parameter
* Definitions</em>}'. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Containing Build Plan</em>' container reference isn't clear, there really should be
* more of a description here...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ public void setRelativePath(String newRelativePath) {
String oldRelativePath = relativePath;
relativePath = newRelativePath;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildPackage.ARTIFACT__RELATIVE_PATH,
oldRelativePath, relativePath));
eNotify(new ENotificationImpl(this, Notification.SET, BuildPackage.ARTIFACT__RELATIVE_PATH, oldRelativePath,
relativePath));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.mylyn.builds.internal.core.BooleanParameterDefinition#isDefaultValue <em>Default Value</em>}</li>
* <li>{@link org.eclipse.mylyn.builds.internal.core.BooleanParameterDefinition#isDefaultValue <em>Default
* Value</em>}</li>
* </ul>
* </p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,11 @@ public void setChangeSet(IChangeSet newChangeSet) {
if (newChangeSet != changeSet) {
NotificationChain msgs = null;
if (changeSet != null)
msgs = ((InternalEObject) changeSet).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- BuildPackage.BUILD__CHANGE_SET, null, msgs);
msgs = ((InternalEObject) changeSet).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - BuildPackage.BUILD__CHANGE_SET, null, msgs);
if (newChangeSet != null)
msgs = ((InternalEObject) newChangeSet).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- BuildPackage.BUILD__CHANGE_SET, null, msgs);
msgs = ((InternalEObject) newChangeSet).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - BuildPackage.BUILD__CHANGE_SET, null, msgs);
msgs = basicSetChangeSet(newChangeSet, msgs);
if (msgs != null)
msgs.dispatch();
Expand Down Expand Up @@ -803,8 +803,8 @@ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, No
switch (featureID) {
case BuildPackage.BUILD__TEST_RESULT:
if (testResult != null)
msgs = ((InternalEObject) testResult).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- BuildPackage.BUILD__TEST_RESULT, null, msgs);
msgs = ((InternalEObject) testResult).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - BuildPackage.BUILD__TEST_RESULT, null, msgs);
return basicSetTestResult((ITestResult) otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,9 @@ public Adapter createBuildPlanAdapter() {
}

/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.IHealthReport
* <em>Health Report</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
* -->
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.IHealthReport <em>Health
* Report</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.mylyn.builds.core.IHealthReport
Expand Down Expand Up @@ -363,10 +362,9 @@ public Adapter createBuildReferenceAdapter() {
}

/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.IChangeSet
* <em>Change Set</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
* -->
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.IChangeSet <em>Change
* Set</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.mylyn.builds.core.IChangeSet
Expand All @@ -377,10 +375,9 @@ public Adapter createChangeSetAdapter() {
}

/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.IChangeArtifact
* <em>Change Artifact</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 -->
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.IChangeArtifact <em>Change
* Artifact</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.mylyn.builds.core.IChangeArtifact
Expand Down Expand Up @@ -529,10 +526,9 @@ public Adapter createStringParameterDefinitionAdapter() {
}

/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.ITestResult
* <em>Test Result</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
* -->
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.ITestResult <em>Test
* Result</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.mylyn.builds.core.ITestResult
Expand All @@ -543,10 +539,9 @@ public Adapter createTestResultAdapter() {
}

/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.ITestElement
* <em>Test Element</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
* -->
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.ITestElement <em>Test
* Element</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.mylyn.builds.core.ITestElement
Expand All @@ -557,10 +552,9 @@ public Adapter createTestElementAdapter() {
}

/**
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.ITestSuite
* <em>Test Suite</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
* -->
* Creates a new adapter for an object of class '{@link org.eclipse.mylyn.builds.core.ITestSuite <em>Test
* Suite</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.mylyn.builds.core.ITestSuite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public void setDescription(String newDescription) {
String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildPackage.BUILD_CAUSE__DESCRIPTION,
oldDescription, description));
eNotify(new ENotificationImpl(this, Notification.SET, BuildPackage.BUILD_CAUSE__DESCRIPTION, oldDescription,
description));
}

/**
Expand Down Expand Up @@ -153,11 +153,11 @@ public void setBuild(IBuildReference newBuild) {
if (newBuild != build) {
NotificationChain msgs = null;
if (build != null)
msgs = ((InternalEObject) build).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- BuildPackage.BUILD_CAUSE__BUILD, null, msgs);
msgs = ((InternalEObject) build).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - BuildPackage.BUILD_CAUSE__BUILD, null, msgs);
if (newBuild != null)
msgs = ((InternalEObject) newBuild).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- BuildPackage.BUILD_CAUSE__BUILD, null, msgs);
msgs = ((InternalEObject) newBuild).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - BuildPackage.BUILD_CAUSE__BUILD, null, msgs);
msgs = basicSetBuild(newBuild, msgs);
if (msgs != null)
msgs.dispatch();
Expand Down Expand Up @@ -202,11 +202,11 @@ public void setUser(IUser newUser) {
if (newUser != user) {
NotificationChain msgs = null;
if (user != null)
msgs = ((InternalEObject) user).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- BuildPackage.BUILD_CAUSE__USER, null, msgs);
msgs = ((InternalEObject) user).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - BuildPackage.BUILD_CAUSE__USER, null, msgs);
if (newUser != null)
msgs = ((InternalEObject) newUser).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- BuildPackage.BUILD_CAUSE__USER, null, msgs);
msgs = ((InternalEObject) newUser).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - BuildPackage.BUILD_CAUSE__USER, null, msgs);
msgs = basicSetUser(newUser, msgs);
if (msgs != null)
msgs.dispatch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ public Map<String, String> getAttributes() {
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BuildPackage.BUILD_ELEMENT__ATTRIBUTES:
return ((InternalEList<?>) ((EMap.InternalMapView<String, String>) getAttributes()).eMap()).basicRemove(
otherEnd, msgs);
return ((InternalEList<?>) ((EMap.InternalMapView<String, String>) getAttributes()).eMap())
.basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
Expand Down Expand Up @@ -353,7 +353,8 @@ public void eSet(int featureID, Object newValue) {
setRefreshDate((Date) newValue);
return;
case BuildPackage.BUILD_ELEMENT__ATTRIBUTES:
((EStructuralFeature.Setting) ((EMap.InternalMapView<String, String>) getAttributes()).eMap()).set(newValue);
((EStructuralFeature.Setting) ((EMap.InternalMapView<String, String>) getAttributes()).eMap())
.set(newValue);
return;
}
super.eSet(featureID, newValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public class BuildFactory extends EFactoryImpl implements IBuildFactory {
*/
public static BuildFactory init() {
try {
BuildFactory theBuildFactory = (BuildFactory) EPackage.Registry.INSTANCE.getEFactory("http://eclipse.org/mylyn/models/build"); //$NON-NLS-1$
BuildFactory theBuildFactory = (BuildFactory) EPackage.Registry.INSTANCE
.getEFactory("http://eclipse.org/mylyn/models/build"); //$NON-NLS-1$
if (theBuildFactory != null) {
return theBuildFactory;
}
Expand Down
Loading

0 comments on commit 6edbf9e

Please sign in to comment.