How to customize ContentChooser for direct connection.

407
0
07-10-2017 01:47 AM
MubasharAhmad1
New Contributor

Hi Guyz,

In my application, currently ContentChooser is accepting only ArcSDE service connection requests. Is there a way to customize the dialog to add a layer using direct connection? I am using esri_mo23.jar.

I want to get layers from direct connection using the dialog mentioned in the attachment.

Thanks in advance,

Mubashar Ahmad

PS here is the code snippet.

if(contentChooser == null)
{
contentChooser = new ContentChooser(LASTPATH);
ContentFilter fcFilter = new SimpleContentFilter.FeatureClasses();
contentChooser.addChoosableContentFilter(fcFilter);
ContentFilter iFilter = new SimpleContentFilter.Images();
contentChooser.addChoosableContentFilter(iFilter);
ContentFilter lFilter = new SimpleContentFilter.Layers();
contentChooser.addChoosableContentFilter(lFilter);
}

contentChooser.showDialog(true);

{
_contents = contentChooser.getContents();

}

0 Kudos
0 Replies