projectviewer.persist
Class ProjectPersistenceManager

java.lang.Object
  extended byprojectviewer.persist.ProjectPersistenceManager

public final class ProjectPersistenceManager
extends java.lang.Object

This class takes care of each projects properties. Each project has its own config file, that is loaded when the project is activated.

Version:
$Id: ProjectPersistenceManager.java 9051 2007-03-01 07:01:35Z vanza $
Author:
Marcelo Vanzin

Nested Class Summary
static class ProjectPersistenceManager.ProjectHandler
          Handler to read project configuration files.
 
Method Summary
static VPTProject load(VPTProject p, java.lang.String file)
          Loads a project from the given file name.
static void loadNodeHandlers(org.gjt.sp.jedit.PluginJAR jar)
          Checks the plugin's properties to see if it declares any node handlers, and register those node handlers within this class.
static void registerHandler(NodeHandler nh)
          Registers a node handler.
static common.threads.WorkRequest save(VPTProject p, java.lang.String filename)
          Saves the given project data to the disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadNodeHandlers

public static void loadNodeHandlers(org.gjt.sp.jedit.PluginJAR jar)
Checks the plugin's properties to see if it declares any node handlers, and register those node handlers within this class.


registerHandler

public static void registerHandler(NodeHandler nh)
Registers a node handler. The same instance will be used at all times to process the data, so make sure this is not a problem with the handler's implementation.


load

public static VPTProject load(VPTProject p,
                              java.lang.String file)
Loads a project from the given file name.


save

public static common.threads.WorkRequest save(VPTProject p,
                                              java.lang.String filename)
Saves the given project data to the disk.