Beanshell:Opening a project
Jump to navigation
Jump to search
This script opens an existing project.
{
// Script for opening an existing project
// uses the open(...) method of the OpenProjectWizard
// cchris 2008/05/06
import com.vividsolutions.jump.task.DummyTaskMonitor;
import org.openjump.core.ui.plugin.file.open.OpenProjectWizard;
projFile = new File("D:/Temp/OpenJump/project1.jmp");
taskMon = new DummyTaskMonitor();
opw = new OpenProjectWizard(wc);
opw.open(projFile, taskMon);
}