Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Direct Edit a GEF edit part with TextFlow
Direct Edit a GEF edit part with TextFlow [message #629852] Wed, 29 September 2010 18:28 Go to next message
Barry Dresdner is currently offline Barry DresdnerFriend
Messages: 75
Registered: July 2009
Member
Is it possible to direct edit type into a GEF EditPart that has a figure containing a draw2d TextFlow? SWTBotGefEditor.directEditType only seems to work for Text widgets. Thanks - Barry
Re: Direct Edit a GEF edit part with TextFlow [message #630261 is a reply to message #629852] Fri, 01 October 2010 11:08 Go to previous messageGo to next message
Barry Dresdner is currently offline Barry DresdnerFriend
Messages: 75
Registered: July 2009
Member
Anyone? Any help here would be greatly appreciated. Perhaps this is work in progress?
Re: Direct Edit a GEF edit part with TextFlow [message #630695 is a reply to message #630261] Mon, 04 October 2010 15:17 Go to previous message
Pascal G is currently offline Pascal GFriend
Messages: 157
Registered: July 2009
Senior Member
On 10-10-01 07:08 AM, Barry Dresdner wrote:
> Anyone? Any help here would be greatly appreciated. Perhaps this is
> work in progress?

TextFlow is a Gef figure and you can't interact with it directly. You
can only interact with EditParts and Widget and I don't know how hard it
would be to implement interaction with figures.

I did a quick search for the usage of TextFlow and it seems it is
wrapped by a MultiLineLabel. There is currently no direct support for
this widget, but you can do this to interact with it:
final MultiLineLabel widget =
bot.widget(widgetOfType(MultiLineLabel.class));

asyncExec(new VoidResult()
{
public void run()
{
widget.setText("This is some text");
}
});

However, if you are not using a MultiLineLabel, I really don't know how
to help you.

Hope this helps.
--
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/

*Because performance matters.*
Previous Topic:Eclipse UI unit testing with SWTBot
Next Topic:Why is a menu item disabled when using SWTBot?
Goto Forum:
  


Current Time: Fri Sep 20 10:20:29 GMT 2024

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

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

Back to the top