Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » GEF - activating palette tool
GEF - activating palette tool [message #639968] Thu, 18 November 2010 15:05 Go to next message
Hayden Marchant is currently offline Hayden MarchantFriend
Messages: 12
Registered: November 2009
Junior Member
I am trying to use the SWTBotGefEditor.activateTool method, but it doesn't
ever match with any of my PaletteTools.

On debugging, I see that the name of the tool as been 'pattern quoted',
causing for the Matcher to fail. My Palette tools have very simple names
like 'Group', 'Project' etc.. - no escape characters or anything like that.
Re: GEF - activating palette tool [message #640630 is a reply to message #639968] Mon, 22 November 2010 16:18 Go to previous messageGo to next message
Mariot Chauvin is currently offline Mariot ChauvinFriend
Messages: 174
Registered: July 2009
Senior Member
Hi,

The activate tool method works at least with the GEF Logical example, so
I will need more details about your use cases. When you said that your
palette tools have very simple names like 'Group', 'Project, etc.. I
assume quotes are not part of the name ?

Regards,

Mariot
--
Mariot Chauvin @ Obeo

http://www.obeo.fr
http://mariot-thoughts.blogspot.com
http://fr.linkedin.com/in/mariotchauvin

Le 18/11/2010 16:05, Hayden a écrit :
> I am trying to use the SWTBotGefEditor.activateTool method, but it doesn't
> ever match with any of my PaletteTools.
>
> On debugging, I see that the name of the tool as been 'pattern quoted',
> causing for the Matcher to fail. My Palette tools have very simple names
> like 'Group', 'Project' etc.. - no escape characters or anything like that.
>
>
Re: GEF - activating palette tool [message #641817 is a reply to message #640630] Sun, 28 November 2010 11:54 Go to previous message
Hayden Marchant is currently offline Hayden MarchantFriend
Messages: 12
Registered: November 2009
Junior Member
Correct, the names do not contain quotes.

I created own version of the PaletteEntry finder, without quoting the regex
and it worked. So I'm wondering what's different about my GEF application
that doesn't like the quotes.....


"Mariot Chauvin" <mariot.chauvin@obeo.fr> wrote in message
news:ice4sk$v2h$1@news.eclipse.org...
> Hi,
>
> The activate tool method works at least with the GEF Logical example, so I
> will need more details about your use cases. When you said that your
> palette tools have very simple names like 'Group', 'Project, etc.. I
> assume quotes are not part of the name ?
>
> Regards,
>
> Mariot
> --
> Mariot Chauvin @ Obeo
>
> http://www.obeo.fr
> http://mariot-thoughts.blogspot.com
> http://fr.linkedin.com/in/mariotchauvin
>
> Le 18/11/2010 16:05, Hayden a
Previous Topic:FileDialog support in SWTBot
Next Topic:How to convert a list of widgets to SWTBot's wrapper objects?
Goto Forum:
  


Current Time: Thu Apr 18 19:54:49 GMT 2024

Powered by FUDForum. Page generated in 0.01305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top