Hei Roman, just on the first part:
how to use your own code with jump: please have a look on th openjump.org wiki you can - add your plugins by changing JumpConfiguration.java or OpenJUMPConfiguration.java - use a properties file (xml) - build your own plugin extension http://openjump.org/wiki/show/Documentation i personally prefer for the development the properties file (is also a commandline option). But for the distribution a plugin-extension should be used (see here the plugins you can download from sourceforge) stefan Roman Isitua schrieb: > Hello Guys, > May be you may understand me better if I tell how I am building > my openjump application. > I created a JUMPWorkbench object then i passed it into a > JUMPWorkbenchcontext > object. I used accessor methods like getworkbenchframe, getToolbar to > access some components like the > workbenchframe and workbenchtoolbar to manipulate them. I added cursor tools > to the workbenchtoolbar. All the cursor tools added so far are working > except for the FeatureInfoTool > (cursor tool) I talked about earlier. I then used a featureinstaller object > to add the plugins I need. (As specified in jump developer guide) > A portion of the source of my program is like this: > > parameters[1] = "C:/Documents and Settings/Roman/My Documents/GIS > library/openjump/openjump-src-mod-1.0.1/lib/ext"; > > printStreamTaskMonitor = new PrintStreamTaskMonitor(); > > try { > jWorkBench = new JUMPWorkbench(" Map View (GIS Viewer) ", > parameters, new ImageIcon(), > new JWindow(), printStreamTaskMonitor ); > } > catch (Exception ex) > { > System.err.println(ex.getMessage()); > } > > jWorkBenchContext = new JUMPWorkbenchContext(jWorkBench); > featureInstaller = new FeatureInstaller(jWorkBenchContext); > > wbFrame = jWorkBench.getFrame(); > // wbFrame.setSize(400,300); > // wbFrame.setLocation(150,250); > > wbToolbar = wbFrame.getToolBar(); > > wbFrame.setVisible(true); > from here on i add my cursor tools and plugins. > > Is this how everybody is building his/her own openjump implementation or > are my missing something here ? The error that occurs as a result of > using this tool > is as follows > java.util.NoSuchElementException: Vector > Enumeration > at java.util.Vector$1.nextElement(Vector.java:308) > at > com.vividsolutions.jump.workbench.ui.GeometryInfoTab.<init>( > GeometryInfoTab.java:116) > at > > com.vividsolutions.jump.workbench.ui.InfoFrame.<init>(InfoFrame.java:75) > but the FeatureInfoTool works in the original JUMP > program. > > Now about the Infoframe. While using the main openjump program (i.e > version 1.0.1) > If I load a shapefile, view the attributes of the layer using the > viewattributeplugin, > then I query the attributes of the layer using the simplequeryplugin > (selecting the display > table check box in the simplequerydialog that shows up), an error occurs > similar to this > Exception in thread "Thread-6" > > java.lang.ClassCastException: > > > > > com.vividsolutions.jump.workbench.ui.plugin.ViewAttributesPlugIn$ViewAttributesFrame > > cannot be cast to > > com.vividsolutions.jump.workbench.ui.TaskFrame > > at > > > org.openjump.core.ui.plugin.queries.QueryDialog$2.run(QueryDialog.java > > :840) > > at java.lang.Thread.run(Thread.java:619) > > > > unless I close the Infoframe table before executing the query. errors > similar > to the above occur. I have'nt noticed any adverse effect on the openjump > program > but I find it rather unusual for such a thing to happen. > The application I intend developing will use attribute queries extensively. > I need to allow the user to view different query results (in tables) so > comparisons can be made between the results. > > Yours faithfully, > Roman > > > ------------------------------------------------------------------------ > Now that's room service! Choose from over 150,000 hotels > in 45,000 destinations on Yahoo! Travel > <http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw-- > > > to find your fit. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Jump-pilot-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Jump-pilot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
