*
* @param document
* @return number of undo steps
*/
public int run(ITutorialDocument document) {
DocumentInfo docInfo = DocumentManager.getInstance().getDocumentInfo(
document);
if (docInfo == null)
return 0;
int undoSteps = 0;
for (IIntegrator integrator : docInfo.getIntegrators())
for (String integrationID : docInfo.getIntegrationIDs(integrator)) {
XMLArtefact xmlArtefact = integrationInfo
.getArtefactReference(integrationID);
try {
Configuration config = integrator
.getConfiguration(integrationID);