Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBotEclipseEditor title and tooltip text
SWTBotEclipseEditor title and tooltip text [message #909420] Fri, 07 September 2012 05:45 Go to next message
vishesh singhal is currently offline vishesh singhal
Messages: 4
Registered: September 2012
Junior Member
how to find the title and tooltip text of SWTBotEclipseEditor.getText() method gives the text inside SWTBotEclipseEditor.

index.php/fa/11406/0/


    SWTBotEclipseEditor editor = bot.editorByTitle("testFoo.txt").toTextEditor();
    String title =  editor.???   //I want title which is testFoo.txt
    String toolTip = editor.getToolTipText();  //not giving 'tooltip text'


please help
  • Attachment: HnaWf.png
    (Size: 2.75KB, Downloaded 254 times)
Re: SWTBotEclipseEditor title and tooltip text [message #911214 is a reply to message #909420] Tue, 11 September 2012 07:32 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 764
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi,

I would suggest .getTitle and .getTooltipText. If they don't return the
correct value, then it may be a bug, you should report it on Bugzilla.
As a workaround, you can try editor.getReference().getTitle() or
editor.getReference().getTitleToolTip().

HTH

On 09/07/2012 07:46 AM, vishesh singhal wrote:
> how to find the title and tooltip text of
SWTBotEclipseEditor.getText() method gives the text inside
SWTBotEclipseEditor.
>
>
>
>
>
> SWTBotEclipseEditor editor =
bot.editorByTitle("testFoo.txt").toTextEditor();
> String title = editor.??? //I want title which is testFoo.txt
> String toolTip = editor.getToolTipText(); //not giving 'tooltip
text'
>
>
> please help
>


--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: SWTBotEclipseEditor title and tooltip text [message #911267 is a reply to message #911214] Tue, 11 September 2012 09:15 Go to previous message
vishesh singhal is currently offline vishesh singhal
Messages: 4
Registered: September 2012
Junior Member
[quote title=Mickael Istria wrote on Tue, 11 September 2012 03:32]

Thank you,Workaround worked
Previous Topic:how to get draw2d objects on the regular eclipse views
Next Topic:can't access menu item with icon
Goto Forum:
  


Current Time: Mon Oct 20 17:59:26 GMT 2014

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

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