|
TPTP 4.4.0 Testing Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.test.auto.gui.internal.macro.ObjectMineManager
In addition to the macro of each test case, a test suite also contains an object
mine keeps a reference of all resolved objects. The purpose of the object mine
is to resolve a widget once and use it many times.
This is a singleton class that can be accessed via getInstance()
| Method Summary | |
|---|---|
void |
clearCache()
Removes all entries in cache. |
static ObjectMineManager |
getInstance()
Return the instance of this singleton class |
IObjectMine |
loadObjectMine(org.eclipse.hyades.models.common.facades.behavioral.ITestSuite testSuite)
|
IObjectMine |
loadObjectMine(org.eclipse.hyades.models.common.facades.behavioral.ITestSuite testSuite,
boolean useCache)
Load the object mine of the passed in test suite |
IObjectMine |
loadObjectMine(java.lang.String objectMineXML)
This method should be used if the object mine will be loaded for reading purposes. |
void |
markObjectMineDirty(org.eclipse.hyades.models.common.facades.behavioral.ITestSuite testSuite)
Marks the object mine of the passed in test suite as dirty |
void |
writeObjectMine(IObjectMine objectMine)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ObjectMineManager getInstance()
public IObjectMine loadObjectMine(org.eclipse.hyades.models.common.facades.behavioral.ITestSuite testSuite,
boolean useCache)
throws ObjectMine.UIObjectNotFound,
ObjectMine.IDCollisionException,
org.eclipse.core.runtime.CoreException
testSuite - The test suite whose object mine is requesteduseCache - Uses the cached value if this is set to true; otherwise the
object mine is reloaded and returned.
UIObjectNotFound - In case an expected object is not found
IDCollisionException - In case there is a collision id
org.eclipse.core.runtime.CoreException - In case of any unexpected error
ObjectMine.UIObjectNotFound
ObjectMine.IDCollisionException
public IObjectMine loadObjectMine(java.lang.String objectMineXML)
throws ObjectMine.UIObjectNotFound,
ObjectMine.IDCollisionException,
org.eclipse.core.runtime.CoreException
objectMineXML - The XML string representing the object mine
UIObjectNotFound - In case an expected object is not found
IDCollisionException - In case there is a collision id
org.eclipse.core.runtime.CoreException - In case of any unexpected error
ObjectMine.UIObjectNotFound
ObjectMine.IDCollisionExceptionpublic void writeObjectMine(IObjectMine objectMine)
public IObjectMine loadObjectMine(org.eclipse.hyades.models.common.facades.behavioral.ITestSuite testSuite)
throws ObjectMine.UIObjectNotFound,
ObjectMine.IDCollisionException,
org.eclipse.core.runtime.CoreException
ObjectMine.UIObjectNotFound
ObjectMine.IDCollisionException
org.eclipse.core.runtime.CoreExceptionpublic void markObjectMineDirty(org.eclipse.hyades.models.common.facades.behavioral.ITestSuite testSuite)
testSuite - The test suitepublic void clearCache()
|
TPTP 4.4.0 Testing Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||