Revision: 5510 http://sourceforge.net/p/jump-pilot/code/5510 Author: michaudm Date: 2017-10-07 13:15:32 +0000 (Sat, 07 Oct 2017) Log Message: ----------- Activate core cts plugin, add icon and remove external extension
Modified Paths: -------------- core/trunk/scripts/default-plugins.xml core/trunk/src/org/openjump/core/ui/plugin/cts/CTSPlugIn.java Added Paths: ----------- core/trunk/lib/cts-1.5.1.jar Removed Paths: ------------- core/trunk/lib/plus/lib/cts-1.4.0-SNAPSHOT.jar Added: core/trunk/lib/cts-1.5.1.jar =================================================================== (Binary files differ) Index: core/trunk/lib/cts-1.5.1.jar =================================================================== --- core/trunk/lib/cts-1.5.1.jar 2017-10-07 09:14:29 UTC (rev 5509) +++ core/trunk/lib/cts-1.5.1.jar 2017-10-07 13:15:32 UTC (rev 5510) Property changes on: core/trunk/lib/cts-1.5.1.jar ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Deleted: core/trunk/lib/plus/lib/cts-1.4.0-SNAPSHOT.jar =================================================================== (Binary files differ) Modified: core/trunk/scripts/default-plugins.xml =================================================================== --- core/trunk/scripts/default-plugins.xml 2017-10-07 09:14:29 UTC (rev 5509) +++ core/trunk/scripts/default-plugins.xml 2017-10-07 13:15:32 UTC (rev 5510) @@ -911,7 +911,10 @@ <plug-in> org.openjump.core.ui.plugin.cts.CTSPlugIn <menus> - <main-menu menupath="MenuNames.PLUGINS" install="true" /> + <main-menu + menupath="MenuNames.PLUGINS" + icon="world.png" + install="true" /> </menus> </plug-in> Modified: core/trunk/src/org/openjump/core/ui/plugin/cts/CTSPlugIn.java =================================================================== --- core/trunk/src/org/openjump/core/ui/plugin/cts/CTSPlugIn.java 2017-10-07 09:14:29 UTC (rev 5509) +++ core/trunk/src/org/openjump/core/ui/plugin/cts/CTSPlugIn.java 2017-10-07 13:15:32 UTC (rev 5510) @@ -76,6 +76,7 @@ final String SOURCE = "source"; final String TARGET = "target"; + System.out.println("!!!!!!!!!"); MultiInputDialog dialog = new MultiInputDialog(context.getWorkbenchFrame(), getName(), true); // Try to get the srid (epsg) of selected layers @@ -135,7 +136,7 @@ } public void run(TaskMonitor monitor, PlugInContext context) - throws RegistryException, CRSException { + throws RegistryException, CRSException, CoordinateOperationException { reportNothingToUndoYet(context); if (srcCode == null) { throw new RegistryException(INVALID_SRC_CRS); @@ -150,13 +151,13 @@ } else if (registry.equals("IGNF")) { registryManager.addRegistry(new IGNFRegistry()); } - //CoordinateReferenceSystem srcCRS = registryManager.getRegistry(registry) - // .getCoordinateReferenceSystem(new Identifier(registry, srcCode, null)); - //CoordinateReferenceSystem tgtCRS = registryManager.getRegistry(registry) - // .getCoordinateReferenceSystem(new Identifier(registry, tgtCode, null)); -// - //commitChanges(monitor, context, srcCRS, tgtCRS); - //report(context, srcCRS, tgtCRS); + CoordinateReferenceSystem srcCRS = registryManager.getRegistry(registry) + .getCoordinateReferenceSystem(new Identifier(registry, srcCode, null)); + CoordinateReferenceSystem tgtCRS = registryManager.getRegistry(registry) + .getCoordinateReferenceSystem(new Identifier(registry, tgtCode, null)); + + commitChanges(monitor, context, srcCRS, tgtCRS); + report(context, srcCRS, tgtCRS); } } ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel