TPTP 4.4.0 Testing Tools Project
Internal API Specification

org.eclipse.hyades.test.tools.core.internal.common.codegen.changes
Class AssociateModelSourceChange

java.lang.Object
  extended byorg.eclipse.ltk.core.refactoring.Change
      extended byorg.eclipse.hyades.test.core.internal.changes.PotentialChange
          extended byorg.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
 

Constructor Detail

AssociateModelSourceChange

public AssociateModelSourceChange(org.eclipse.core.resources.IFile javaFile,
                                  org.eclipse.hyades.models.common.facades.behavioral.ITestSuite testSuite)
Parameters:
javaFile -
testSuite -
Method Detail

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.

TPTP 4.4.0 Testing Tools Project
Internal API Specification