Revision: 4438 http://sourceforge.net/p/jump-pilot/code/4438 Author: michaudm Date: 2015-05-15 14:47:33 +0000 (Fri, 15 May 2015) Log Message: ----------- Add attribute "unselect" to unselect selected features after attributes have been set
Modified Paths: -------------- plug-ins/SetAttributesPlugin/trunk/src/org/openjump/ext/setattributes/SetAttributesExtension.java plug-ins/SetAttributesPlugin/trunk/src/org/openjump/ext/setattributes/SetAttributesToolbox.java Modified: plug-ins/SetAttributesPlugin/trunk/src/org/openjump/ext/setattributes/SetAttributesExtension.java =================================================================== --- plug-ins/SetAttributesPlugin/trunk/src/org/openjump/ext/setattributes/SetAttributesExtension.java 2015-05-14 15:44:56 UTC (rev 4437) +++ plug-ins/SetAttributesPlugin/trunk/src/org/openjump/ext/setattributes/SetAttributesExtension.java 2015-05-15 14:47:33 UTC (rev 4438) @@ -15,7 +15,7 @@ } public String getVersion() { - return "0.5 (2015-05-12)"; + return "0.5.1 (2015-05-12)"; } public void configure(PlugInContext context) throws Exception { Modified: plug-ins/SetAttributesPlugin/trunk/src/org/openjump/ext/setattributes/SetAttributesToolbox.java =================================================================== --- plug-ins/SetAttributesPlugin/trunk/src/org/openjump/ext/setattributes/SetAttributesToolbox.java 2015-05-14 15:44:56 UTC (rev 4437) +++ plug-ins/SetAttributesPlugin/trunk/src/org/openjump/ext/setattributes/SetAttributesToolbox.java 2015-05-15 14:47:33 UTC (rev 4438) @@ -46,6 +46,9 @@ @XmlAttribute Integer iconHeight = 32; + @XmlAttribute (required=false) + boolean unselect; + @XmlElement (name="button") List<SetOfAttributes> buttons; @@ -109,6 +112,11 @@ mapSource.put(lyr,srcLayerMap); mapTarget.put(lyr,tgtLayerMap); } + if (unselect) { + for (Layer lyr : selectionManager.getLayersWithSelectedItems()) { + selectionManager.unselectItems(lyr); + } + } if (editableLayers == 0 && setOfAttributes.getLayer() == null) { pluginContext.getWorkbenchFrame().warnUser(I18N_.getText("set_attributes", "SetAttributesPlugIn.no-feature-found")); ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel