Is there a method to disable "Raster Query Tool"?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a method to disable "Raster Query Tool"?

Giuseppe Cinque
Hello,
I did the following test:

1. Open JGrass
2. Load a raster map from JGrass database
3. Launch JGrass - Raster Tools - Raster Query Tool
4. I use Raster Query Tool

Then, is there a method to disable Raster Query Tool?

Thank you
_______________________________________________
JGrass-devel mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is there a method to disable "Raster Query Tool"?

Andrea Antonello
Both the programmatic way as well as the user way you will have to
activate another tool.

You could activeate the selection tool for example.

Ciao
Andrea


On Mon, Jan 12, 2009 at 12:17 PM, Giuseppe Cinque <[hidden email]> wrote:

> Hello,
> I did the following test:
>
> 1. Open JGrass
> 2. Load a raster map from JGrass database
> 3. Launch JGrass - Raster Tools - Raster Query Tool
> 4. I use Raster Query Tool
>
> Then, is there a method to disable Raster Query Tool?
>
> Thank you
> _______________________________________________
> JGrass-devel mailing list
> [hidden email]
> https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-devel
>
_______________________________________________
JGrass-devel mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is there a method to disable "Raster Query Tool"?

Giuseppe Cinque
In reply to this post by Giuseppe Cinque
Hello Andrea,
some advice for programmatic way?

Thank you,
Giuseppe


Andrea Antonello wrote:
Both the programmatic way as well as the user way you will have to
activate another tool.

You could activeate the selection tool for example.

Ciao
Andrea


On Mon, Jan 12, 2009 at 12:17 PM, Giuseppe Cinque <gfcinque at gmail.com> wrote:

> Hello,
> I did the following test:
>
> 1. Open JGrass
> 2. Load a raster map from JGrass database
> 3. Launch JGrass - Raster Tools - Raster Query Tool
> 4. I use Raster Query Tool
>
> Then, is there a method to disable Raster Query Tool?
>
> Thank you
_______________________________________________
JGrass-devel mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is there a method to disable "Raster Query Tool"?

Giuseppe Cinque
In reply to this post by Giuseppe Cinque
Hello,
a solution is:

// Raster query tool
IAction tool = toolManager.getToolAction(
                "eu.hydrologis.jgrass.whatrast.whatrasttool",
                "net.refractions.udig.tool.category.info");
tool.run();

...
// some operation
...

// Selection tool
IAction toolSelection = toolManager.getToolAction(
                "net.refractions.udig.tool.default.show.selection",
                "net.refractions.udig.tool.category.zoom");
toolSelection.run();




Giuseppe Cinque wrote:
Hello Andrea,
some advice for programmatic way?

Thank you,
Giuseppe


Andrea Antonello wrote:
Both the programmatic way as well as the user way you will have to
activate another tool.

You could activeate the selection tool for example.

Ciao
Andrea


On Mon, Jan 12, 2009 at 12:17 PM, Giuseppe Cinque <gfcinque at gmail.com> wrote:

> Hello,
> I did the following test:
>
> 1. Open JGrass
> 2. Load a raster map from JGrass database
> 3. Launch JGrass - Raster Tools - Raster Query Tool
> 4. I use Raster Query Tool
>
> Then, is there a method to disable Raster Query Tool?
>
> Thank you
_______________________________________________
JGrass-devel mailing list
[hidden email]
https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-devel