// javadoc inherited
protected ODOMEditorContext createODOMEditorContext(String rootElementName,
final IFile file) {
ODOMEditorContext context = null;
try {
final JAXPTransformerMetaFactory transformerMetaFactory =
new JAXPTransformerMetaFactory();
MDPRArchiveAccessor archiveAccessor =
new MDPRArchiveAccessor(file.getLocation().toOSString(),
transformerMetaFactory);
boolean ok = true;
if (archiveAccessor.willBeModifiedOnLoad()) {
// Inform the user that the device repository will need
// to be modified and have them give permission.
ok = confirmAndModify(archiveAccessor);
}
if (ok) {
ODOMChangeSupport.ChangeSupportDisabledCommand command =
new ODOMChangeSupport.ChangeSupportDisabledCommand() {
public Object execute() {
ODOMEditorContext context = null;
try {
boolean isAdminProject = file.getProject().
hasNature(
DeviceEditorContext.MCS_ADMIN_NATURE_ID);