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
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to