public interface PortableViewEditorManager
Manager which make easy the creation, editing and share PortableView
This uses all services of PortableViewManager
and
PortableViewSwingManager
in a high level way.
This manager provides the most important services which provides this add-on
Modifier and Type | Method and Description |
---|---|
void |
compileInInstallFolder(PortableViewCompilation compilation,
CompilationListener listener)
Compile a
PortableViewCompilation and deploy it in current install
folder ( PortableViewManager.getInstallationMapFolder() ) |
void |
createPortableViewFromView(ViewDocument view,
CompilationListener listener,
boolean openWindow)
Create a new
PortableView from a view contents and open it as a
PortableViewDocument
PortableViewDocument will be linked to source view so it can be
regenerated. |
ViewDocument |
exportPortableViewToView(PortableViewDocument map,
boolean openViewWindow)
Export the contents of a Portable View into a folder and create a
ViewDocument in project with it's layers
User will be prompted for extract folder
If Portable view document has no related view link the new one to it
|
ViewDocument |
exportPortableViewToView(PortableViewDocument map,
File exportFolder,
boolean openViewWindow)
Export the contents of a Portable View into a folder and create a
ViewDocument in project with it's layers
If Portable view document has no related view link the new one to it
|
File |
generatePackage(PortableViewDocument portableView)
Generate a gvSIG add-ons installer package from a
PortableViewDocument
User will be prompted for folder to store result file
|
File |
generatePackage(PortableViewDocument portableView,
File targetFolder)
Generate a gvSIG add-ons installer package from a
PortableViewDocument |
PortableViewDocumentManager |
getDocManager()
Returns
PortableViewDocumentManager instance |
PortableViewDocument |
getPortableViewDocumentByView(ViewDocument view)
Gets the
PortableViewDocument linked to a ViewDocument |
void |
regeneratePortableView(PortableViewDocument map,
CompilationListener listener,
boolean openWindow)
Regenerates the Portable View from current state of source View
Portable View document must be linked to a view, otherwise this method do
nothing.
|
PortableViewDocumentManager getDocManager()
PortableViewDocumentManager
instancevoid compileInInstallFolder(PortableViewCompilation compilation, CompilationListener listener)
PortableViewCompilation
and deploy it in current install
folder ( PortableViewManager.getInstallationMapFolder()
)compilation
- to compilelistener
- of the processvoid createPortableViewFromView(ViewDocument view, CompilationListener listener, boolean openWindow)
Create a new PortableView
from a view contents and open it as a
PortableViewDocument
PortableViewDocument
will be linked to source view so it can be
regenerated.
view
- listener
- openWindow
- PortableViewDocument getPortableViewDocumentByView(ViewDocument view)
PortableViewDocument
linked to a ViewDocument
view
- File generatePackage(PortableViewDocument portableView, File targetFolder) throws PortableViewException, IOException
PortableViewDocument
portableView
- to packingtargetFolder
- to store result fileIOException
PortableViewException
File generatePackage(PortableViewDocument portableView) throws PortableViewException, IOException
Generate a gvSIG add-ons installer package from a
PortableViewDocument
User will be prompted for folder to store result file
portableView
- IOException
PortableViewException
ViewDocument exportPortableViewToView(PortableViewDocument map, boolean openViewWindow) throws IOException, InvalidPortableViewFormatException, PersistenceException
ViewDocument
in project with it's layers
User will be prompted for extract folder
If Portable view document has no related view link the new one to it
map
- openViewWindow
- IOException
InvalidPortableViewFormatException
PersistenceException
ViewDocument exportPortableViewToView(PortableViewDocument map, File exportFolder, boolean openViewWindow) throws IOException, InvalidPortableViewFormatException, PersistenceException
ViewDocument
in project with it's layers
If Portable view document has no related view link the new one to it
map
- exportFolder
- Warning: this folder must be emptyIOException
InvalidPortableViewFormatException
PersistenceException
void regeneratePortableView(PortableViewDocument map, CompilationListener listener, boolean openWindow) throws InvalidPortableViewFormatException, CantLoadContextException, IOException
Regenerates the Portable View from current state of source View
Portable View document must be linked to a view, otherwise this method do nothing.
map
- listener
- openWindow
- IOException
CantLoadContextException
InvalidPortableViewFormatException