Hei Landon, I don't realy think that the name example is helpful for the start. Of course there may be applications for that.. but who does need to parse all layer names? Why can the operator not just provide a layer?
Shouldn't you focus on working with the GUI - how to use the dialogs, how to get a layer from there? I have never needed to parse layer names. The only thing that I needed was how to get the selected Layers, or a single layer. So.. focus on every-day needed stuff. may be other people have other opinions but these are my2cents stefan Sunburned Surveyor wrote: > I've completed my second example for the OpenJUMP programmer's guide. > You can download the jar file that contains it here: > > http://www.redefinedhorizons.com/shared_files/ > > Just drop the JAR in your /lib/ext folder. > > When you do this you should get a top-level menu called "SurveyOS". > It will contain on sub-menu called Layers with two menu items: > > Count Features In All Layers > Find and Replace In Layer Names > > You guys already know how the first menu item works. This second one > allows you to find and replace parts of layer names using regular > expressions. So, for example, it will allow you to do the following > with a single button click: > > Original Layer Names: > > Lines-Roads > Lines-Rivers > Lines-Railroads > > Modified Layer Names: > > LineStrings-Roads > LineStrings-Rivers > LineStrings-Railroads > > The plug-in also allows you to perform the operation on all of the > layers, or just the selected layers. > > I'll start work on my third example tomorrow. It will allow the user > to select layers based on the layer name matching a regular > expression. > > After that I'm going to write the documentation explaining the > examples for the Plug-In programmer's guide. Then I will start work on > explaining the PlugInContext and WorkbenchContext class. > > I hope you enjoy the example plug-ins. > > The Sunburned Surveyor > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Jump-pilot-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Jump-pilot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
