public class UndoAwareMolecularModelManager extends MolecularModelManager<UndoAwareMolecularModelManager.UndoMetadata>
MolecularModelManager
.Modifier and Type | Class and Description |
---|---|
static class |
UndoAwareMolecularModelManager.ChangeEvent
Details for a change in a model.
|
static class |
UndoAwareMolecularModelManager.UndoMetadata |
MolecularModelManager.UnknownIdentifierException
CoreMolecularModelManager.DeleteInformation
Constructor and Description |
---|
UndoAwareMolecularModelManager(OWLGraphWrapper graph) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToHistory(String modelId,
ModelContainer model,
List<org.semanticweb.owlapi.model.OWLOntologyChange> appliedChanges,
UndoAwareMolecularModelManager.UndoMetadata metadata)
Hook for implementing an undo and redo.
|
protected void |
applyChanges(List<org.semanticweb.owlapi.model.OWLOntologyChange> changes,
org.semanticweb.owlapi.model.OWLOntologyManager manager) |
org.apache.commons.lang3.tuple.Pair<List<UndoAwareMolecularModelManager.ChangeEvent>,List<UndoAwareMolecularModelManager.ChangeEvent>> |
getUndoRedoEvents(String modelId)
Retrieve the current available undo and redo events.
|
boolean |
redo(String modelId,
ModelContainer model,
String userId)
Redo latest change for the given model.
|
boolean |
redo(String modelId,
String userId)
Redo latest change for the given model.
|
boolean |
undo(String modelId,
ModelContainer model,
String userId)
Undo latest change for the given model.
|
boolean |
undo(String modelId,
String userId)
Undo latest change for the given model.
|
addAnnotations, addAnnotations, addAnnotations, addAnnotations, addAnnotations, addDataProperties, addEnabledBy, addEnabledBy, addFact, addFact, addFactNonReasoning, addOccursIn, addOccursIn, addPartOf, addPartOf, addType, addType, addTypeNonReasoning, addTypeNonReasoning, checkModelId, createIndividual, createIndividualNonReasoning, createIndividualNonReasoning, deleteIndividual, deleteIndividualNonReasoning, deleteIndividualNonReasoning, deleteModel, exportModel, exportModelLegacy, generateModel, getIndividualsByQuery, getNamedIndividual, parseClassExpression, removeAnnotations, removeAnnotations, removeAnnotations, removeDataProperties, removeFact, removeFactNonReasoning, removeType, removeTypeNonReasoning, saveModel, searchModels, updateAnnotation, updateAnnotation, updateAnnotation, updateAnnotation, updateAnnotation, updateImports
exportModel, exportModel, generateBlankModel, generateBlankModelWithTaxon, generateModel, getAvailableModelIds, getCurrentModelIds, getGaf, getPathToGafs, getPathToOWLFiles, getStoredModelIds, loadGaf, loadGaf, loadModel, loadModelABox, saveAllModels, saveModel, setPathToGafs, setPathToOWLFiles
addAnnotations, addAnnotations, addAxiom, addDataProperty, addFact, addFact, addImports, addObsoleteImportIRIs, addObsoleteImports, addType, addType, createFact, createIndividual, createIndividual, createType, deleteIndividual, dispose, exportModel, exportModelLegacy, extractIRIValues, getGraph, getImports, getIndividuals, getIndividualsByQuery, getModel, getModelAbox, getModelIds, getOntology, getOWLDataFactory, getOWLOntologyManager, getTboxIRI, importModel, init, isConsistent, loadOntologyIRI, removeAnnotations, removeDataProperty, removeFact, removeType, removeType, unlinkModel, updateImports
public UndoAwareMolecularModelManager(OWLGraphWrapper graph) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
protected void addToHistory(String modelId, ModelContainer model, List<org.semanticweb.owlapi.model.OWLOntologyChange> appliedChanges, UndoAwareMolecularModelManager.UndoMetadata metadata)
CoreMolecularModelManager
addToHistory
in class CoreMolecularModelManager<UndoAwareMolecularModelManager.UndoMetadata>
public boolean undo(String modelId, String userId) throws MolecularModelManager.UnknownIdentifierException
modelId
- userId
- UnknownIdentifierException
MolecularModelManager.UnknownIdentifierException
public boolean undo(String modelId, ModelContainer model, String userId)
modelId
- model
- userId
- public boolean redo(String modelId, String userId) throws MolecularModelManager.UnknownIdentifierException
modelId
- userId
- UnknownIdentifierException
MolecularModelManager.UnknownIdentifierException
public boolean redo(String modelId, ModelContainer model, String userId)
modelId
- model
- userId
- public org.apache.commons.lang3.tuple.Pair<List<UndoAwareMolecularModelManager.ChangeEvent>,List<UndoAwareMolecularModelManager.ChangeEvent>> getUndoRedoEvents(String modelId)
modelId
- protected void applyChanges(List<org.semanticweb.owlapi.model.OWLOntologyChange> changes, org.semanticweb.owlapi.model.OWLOntologyManager manager)
Copyright © 2010–2015. All rights reserved.