org.eclipse.hyades.test.tools.core.internal.common.codegen.changes
Class AssociateModelSourceChange
java.lang.Object
org.eclipse.ltk.core.refactoring.Change
org.eclipse.hyades.test.core.internal.changes.PotentialChange
org.eclipse.hyades.test.tools.core.internal.common.codegen.changes.AssociateModelSourceChange
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable
- public class AssociateModelSourceChange
- extends PotentialChange
Change that adds a JUnit association from a java file to a test suite model.
- Since:
- 4.3
|
Constructor Summary |
AssociateModelSourceChange(org.eclipse.core.resources.IFile javaFile,
org.eclipse.hyades.models.common.facades.behavioral.ITestSuite testSuite)
|
|
Method Summary |
java.lang.Object |
getModifiedElement()
|
java.lang.String |
getName()
|
boolean |
hasEffect()
Determines if the change would have any real effect, if it was applied.
|
void |
initializeValidationData(org.eclipse.core.runtime.IProgressMonitor pm)
|
org.eclipse.ltk.core.refactoring.RefactoringStatus |
isValid(org.eclipse.core.runtime.IProgressMonitor pm)
|
org.eclipse.ltk.core.refactoring.Change |
perform(org.eclipse.core.runtime.IProgressMonitor pm)
|
| Methods inherited from class org.eclipse.ltk.core.refactoring.Change |
dispose, getAdapter, getAffectedObjects, getDescriptor, getParent, isEnabled, setEnabled, setEnabledShallow |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssociateModelSourceChange
public AssociateModelSourceChange(org.eclipse.core.resources.IFile javaFile,
org.eclipse.hyades.models.common.facades.behavioral.ITestSuite testSuite)
- Parameters:
javaFile - testSuite -
getModifiedElement
public java.lang.Object getModifiedElement()
getName
public java.lang.String getName()
initializeValidationData
public void initializeValidationData(org.eclipse.core.runtime.IProgressMonitor pm)
isValid
public org.eclipse.ltk.core.refactoring.RefactoringStatus isValid(org.eclipse.core.runtime.IProgressMonitor pm)
throws org.eclipse.core.runtime.CoreException,
org.eclipse.core.runtime.OperationCanceledException
- Throws:
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException
perform
public org.eclipse.ltk.core.refactoring.Change perform(org.eclipse.core.runtime.IProgressMonitor pm)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
hasEffect
public boolean hasEffect()
- Description copied from class:
PotentialChange
- Determines if the change would have any real effect, if it was applied.
If the method returns
false, then the effect of the change is
equivalent to NullChange.
- Specified by:
hasEffect in class PotentialChange
- Returns:
true if and only if applying the change have a real effect.