Ejemplo n.º 1
0
 /*	public static ProjectTable createTable(String viewName, FTable ftable){
 		return Table.createTable(viewName, ftable);
 	}
 */
 public static ProjectView createView(String viewName) {
   ProjectDocumentFactory pdf = null;
   try {
     pdf =
         (ProjectDocumentFactory)
             ToolsLocator.getExtensionPointManager()
                 .get("Documents")
                 .create(ProjectViewFactory.registerName);
   } catch (Exception e) {
     // FIXME Exception
     e.printStackTrace();
   }
   ProjectView pv = (ProjectView) pdf.create((Project) null);
   pv.setProjectDocumentFactory(pdf);
   pv.setName(viewName);
   return pv;
 }
Ejemplo n.º 2
0
 public static ProjectMap createMap(String baseName) {
   ProjectDocumentFactory pdf = null;
   try {
     pdf =
         (ProjectDocumentFactory)
             ToolsLocator.getExtensionPointManager()
                 .get("Documents")
                 .create(ProjectMapFactory.registerName);
   } catch (Exception e) {
     // FIXME Exception
     e.printStackTrace();
   }
   ProjectMap pm = (ProjectMap) pdf.create((Project) null);
   pm.setProjectDocumentFactory(pdf);
   pm.setName(baseName);
   return pm;
 }