}
public void create(final URI location, final IProgressMonitor monitor) {
try {
IHandle _parent = this.getParent();
final IWorkspace workspace = ((ErlModel) _parent).getWorkspace();
workspace.run(
new IWorkspaceRunnable() {
public void run(final IProgressMonitor monitor0) {
try {
IProgressMonitor _elvis = null;
if (monitor0 != null) {
_elvis = monitor0;
} else {
NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
_elvis = _nullProgressMonitor;
}
final IProgressMonitor monitor = _elvis;
try {
monitor.beginTask("", 4);
final IProjectDescription description = workspace.newProjectDescription(ErlProject.this.name);
description.setLocationURI(location);
SubProgressMonitor _subProgressMonitor = new SubProgressMonitor(monitor, 1);
ErlProject.this.workspaceProject.create(description, _subProgressMonitor);
SubProgressMonitor _subProgressMonitor_1 = new SubProgressMonitor(monitor, 1);
ErlProject.this.workspaceProject.open(_subProgressMonitor_1);