Hi,
I'll try to catch error thrown in case there is no WMS layer however...
Michaël
Le 24/08/2011 23:12, Michaël Michaud a écrit :
> Hi Jukka,
>
> Can you try to put in beantools dir the following script :
>
> //////////////////////////////////////////////////////////////
> import com.vividsolutions.jump.workbench.model.WMSLayer;
> import com.vividsolutions.jump.workbench.ui.ErrorDialog;
> url = wc.getLayerManager()
>
> .getLayerables(WMSLayer.class).iterator().next().createRequest(wc.getLayerViewPanel())
> .getURL();
> ErrorDialog.show(wc.workbench.frame, "URL of requested WMS",
> url.toString().substring(0, 64), url.toString().replaceAll("(\\?)|&",
> "$1\n"));
> //////////////////////////////////////////////////////////////
>
> If it does what you want, I would be pleased to include it in the
> distribution,
>
> Michaël
>
> Le 14/08/2011 16:48, Rahkonen Jukka a écrit :
>> Hi,
>>
>> I am using quite often this Beanshell script for checking what WMS URL is
>> been used.
>>
>> http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Beanshell:Get_the_WMS_URL_that_JUMP_is_using
>>
>> It would be nice to access the script directly as a BeanTool from the OJ
>> menu but obviously there is need to write a little bit more code before it
>> works. I would guess it is basically just missing a text window for writing
>> out the result.
>>
>> -Jukka Rahkonen-
>> ------------------------------------------------------------------------------
>> FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
>> Subversion made easy with a complete admin console. Easy
>> to use, easy to manage, easy to install, easy to extend.
>> Get a Free download of the new open ALM Subversion platform now.
>> http://p.sf.net/sfu/wandisco-dev2dev
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
>
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> Jump-pilot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel