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,
java.io.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
|
java.io.File |
generatePackage(PortableViewDocument portableView)
Generate a gvSIG add-ons installer package from a
PortableViewDocument
User will be prompted for folder to store result file
|
java.io.File |
generatePackage(PortableViewDocument portableView,
java.io.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 ViewDocumentview - java.io.File generatePackage(PortableViewDocument portableView, java.io.File targetFolder) throws PortableViewException, java.io.IOException
PortableViewDocumentportableView - to packingtargetFolder - to store result filejava.io.IOExceptionPortableViewExceptionjava.io.File generatePackage(PortableViewDocument portableView) throws PortableViewException, java.io.IOException
Generate a gvSIG add-ons installer package from a
PortableViewDocument
User will be prompted for folder to store result file
portableView - java.io.IOExceptionPortableViewExceptionViewDocument exportPortableViewToView(PortableViewDocument map, boolean openViewWindow) throws java.io.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 - java.io.IOExceptionInvalidPortableViewFormatExceptionPersistenceExceptionViewDocument exportPortableViewToView(PortableViewDocument map, java.io.File exportFolder, boolean openViewWindow) throws java.io.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 emptyjava.io.IOExceptionInvalidPortableViewFormatExceptionPersistenceExceptionvoid regeneratePortableView(PortableViewDocument map, CompilationListener listener, boolean openWindow) throws InvalidPortableViewFormatException, CantLoadContextException, java.io.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 - java.io.IOExceptionCantLoadContextExceptionInvalidPortableViewFormatException