public IModelElement getHandleFromMemento( String token, MementoTokenizer memento, WorkingCopyOwner owner) { switch (token.charAt(0)) { case JEM_SCRIPTPROJECT: if (!memento.hasMoreTokens()) return this; String projectName = memento.nextToken(); ModelElement project = (ModelElement) getScriptProject(projectName); return project.getHandleFromMemento(memento, owner); } return null; }
public IModelElement getHandleFromMemento( String token, MementoTokenizer memento, WorkingCopyOwner owner) { switch (token.charAt(0)) { case JEM_SOURCEMODULE: if (!memento.hasMoreTokens()) return this; String classFileName = memento.nextToken(); ModelElement classFile = (ModelElement) getSourceModule(classFileName); return classFile.getHandleFromMemento(memento, owner); } return null; }