<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JEditToolsPicker problem in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/jedittoolspicker-problem/m-p/260564#M756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to build an application that allows users to edit data in a file geodatabase.&amp;nbsp; I've created a map package with the layers that I want to be able to edit. I've figured out how to set the layers to be editable when they are added to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After browsing the javadoc for the toolkit I found a widget (JEditToolsPicker) which looks like it has much of the functionality I want to allow me to edit features.&amp;nbsp; It works fine when set to "All Layers" however when I change to "Selected Layers" the pulldown menu that is suppose to allow me to select individual layers does not seem to work.&amp;nbsp; Been working it over in the debugger and haven't managed to figure out what's wrong.&amp;nbsp; I suspect its not picking up the layers in the Map properly.&amp;nbsp; Any hints advice on how to use this widget so that it allows me to work with a subset of the layers that might be displayed on the map would be fantastic!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 22:36:38 GMT</pubDate>
    <dc:creator>KevinNetherton</dc:creator>
    <dc:date>2012-05-23T22:36:38Z</dc:date>
    <item>
      <title>JEditToolsPicker problem</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jedittoolspicker-problem/m-p/260564#M756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to build an application that allows users to edit data in a file geodatabase.&amp;nbsp; I've created a map package with the layers that I want to be able to edit. I've figured out how to set the layers to be editable when they are added to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After browsing the javadoc for the toolkit I found a widget (JEditToolsPicker) which looks like it has much of the functionality I want to allow me to edit features.&amp;nbsp; It works fine when set to "All Layers" however when I change to "Selected Layers" the pulldown menu that is suppose to allow me to select individual layers does not seem to work.&amp;nbsp; Been working it over in the debugger and haven't managed to figure out what's wrong.&amp;nbsp; I suspect its not picking up the layers in the Map properly.&amp;nbsp; Any hints advice on how to use this widget so that it allows me to work with a subset of the layers that might be displayed on the map would be fantastic!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 22:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jedittoolspicker-problem/m-p/260564#M756</guid>
      <dc:creator>KevinNetherton</dc:creator>
      <dc:date>2012-05-23T22:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: JEditToolsPicker problem</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jedittoolspicker-problem/m-p/260565#M757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I figured out what the problem was.&amp;nbsp; Has to do with the filtering of feature classes.&amp;nbsp; In my application I want to be able to edit &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGISLocalFeatureLayer &lt;/SPAN&gt;&lt;SPAN&gt;objects or layers or whatever you want to call them! The filter that is getting set up by the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;JEditToolsPicker &lt;/SPAN&gt;&lt;SPAN&gt;on line 522 is for objects of type &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGISFeatureLayer&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGISLocalFeatureLayer &lt;/SPAN&gt;&lt;SPAN&gt;are subclasses of &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGISFeatureLayer &lt;/SPAN&gt;&lt;SPAN&gt;so in my mind they should not get filtered out, but unfortunately that is exactly what is happening.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've managed to deduce that the filtering takes place in the class &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;SelectLayersAction&lt;/SPAN&gt;&lt;SPAN&gt; and specifically in the method &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;handleMapReady &lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've changed this methods if statement from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:fixedsys;"&gt;if ((_filterClass == null) || curLayer.getClass().equals(_filterClass)) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:fixedsys;"&gt;if ((_filterClass == null) ||&amp;nbsp; ( curLayer.getClass().equals(_filterClass) || curLayer.getClass().getSuperclass().equals(_filterClass))) {&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and now objects of type &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGISFeatureLayer &lt;/SPAN&gt;&lt;SPAN&gt;are included in the "selected layer list" as well as any classes that subclasses of that class like &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGISLocalFeatureLayer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be great to get some feedback on whether this is bug, or whether the widget was intentionally designed to only allow editing of &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGISFeatureLayer &lt;/SPAN&gt;&lt;SPAN&gt;objects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, hope this helps someone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 18:05:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jedittoolspicker-problem/m-p/260565#M757</guid>
      <dc:creator>KevinNetherton</dc:creator>
      <dc:date>2012-05-28T18:05:01Z</dc:date>
    </item>
  </channel>
</rss>

