use of org.eclipse.wst.sse.core.internal.provisional.exceptions.ResourceAlreadyExists in project webtools.sourceediting by eclipse.
the class URLModelProvider method getNewModelForRead.
public IStructuredModel getNewModelForRead(IFile iFile) {
if (iFile == null)
return null;
IModelManager manager = getModelManager();
if (manager == null)
return null;
IStructuredModel model = null;
try {
model = manager.getNewModelForEdit(iFile, false);
} catch (IOException ex) {
} catch (ResourceInUse riu) {
} catch (ResourceAlreadyExists rae) {
} catch (CoreException ce) {
}
return model;
}
use of org.eclipse.wst.sse.core.internal.provisional.exceptions.ResourceAlreadyExists in project webtools.sourceediting by eclipse.
the class URLModelProvider method getNewModelForEdit.
public IStructuredModel getNewModelForEdit(IFile iFile) {
if (iFile == null)
return null;
IModelManager manager = getModelManager();
if (manager == null)
return null;
IStructuredModel model = null;
try {
model = manager.getNewModelForEdit(iFile, false);
} catch (IOException ex) {
} catch (ResourceInUse riu) {
} catch (ResourceAlreadyExists rae) {
} catch (CoreException ce) {
}
return model;
}
Aggregations