gvSIG feature requests #1626
Utility method to open a project from code
Status: | Fixed | % Done: | 100% | |
---|---|---|---|---|
Priority: | Normal | |||
Assignee: | ||||
Category: | - | |||
Target version: | - | |||
gvSIG version: | 1.12.0 | Add-on version: | ||
Keywords: | project | Add-on resolve version: | ||
Has patch: | No | Add-on resolve build: | ||
Add-on name: | Application gvSIG (org.gvsig.app) |
Description
From time to time someone asks on the list how to open a project from code.
To avoid bizarre explanations we should provide an utility method that handles this issue.
The attached patch makes a small refactoring in ProjectExtension, adding a new method to open a project.
So, if a plugin needs to open a .gvp it only needs to do:
File projectFile = new File("foo"); ProjectExtension pe = (ProjectExtension) PluginServices.getExtension(ProjectExtension.class); pe.openProject(projectFile);
This patch has been funded by Servigis
History
#1
Updated by Francisco Puga over 11 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset r39770.
#2
Updated by Álvaro Anguix over 10 years ago
- Project changed from Application: gvSIG desktop to | gvSIG desktop 1
- Category deleted (
Developer tools) - Target version deleted (
1.13.0)