Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » --SOLVED-- GMF/GEF editor in the first page of a SharedHeaderFormEditor
--SOLVED-- GMF/GEF editor in the first page of a SharedHeaderFormEditor [message #661934] Mon, 28 March 2011 10:38 Go to next message
Abu Zak is currently offline Abu Zak
Messages: 11
Registered: February 2010
Junior Member
Hello,

I have a GMF/GEF editor that is located in the first page of a SharedHeaderFormEditor.

I can access the top editor using:
SWTBotEditor editor = workbenchBot.editorByTitle("top-Editor-Title");

How do I get the SWTBotGefEditor for my GMF editor from the top SharedHeaderFormEditor???


Currently there is no API to access an editor that is embedded in another editor using:
editor.bot().something()


I can also access multiPageEditor using
SWTBotMultiPageEditor multiPageEditor = workbenchBot.multipageEditorByTitle("the-title");

How do one get a GeF-editor embedded in a CtabItem of a multiPageEditor


I can also access the cTabItem of the gefEditor using

SWTBotCTabItem tabItem = multiPageEditor.activatePage("gef-editor-title");

Thank you!

[Updated on: Tue, 29 March 2011 14:35]

Report message to a moderator

Re: GMF/GEF editor in the first page of a SharedHeaderFormEditor [message #661958 is a reply to message #661934] Mon, 28 March 2011 11:02 Go to previous messageGo to next message
Mariot Chauvin is currently offline Mariot Chauvin
Messages: 174
Registered: July 2009
Senior Member
Hi,

Comments below.

Le 28/03/2011 16:38, Zakdad a écrit :
> Hello,
>
> I have a GMF/GEF editor that is located in the first page of a
> SharedHeaderFormEditor.
>
> I can access the top editor using:
> SWTBotEditor editor = workbenchBot.editorByTitle("top-Editor-Label");
>
> Currently there is no API to access an editor that is embedded in
> another editor using:
> editor.bot().something()
>
> How do I get the SWTBotGefEditor for my GMF editor from the top
> SharedHeaderFormEditor???
>
> Thank you!

See
http://www.eclipse.org/forums/index.php?t=msg&goto=55618 9&S=802e0001a71aaa3d37de388769f59a20

Regards,

Mariot
--
Mariot Chauvin @ Obeo

Blog : http://mariot-thoughts.blogspot.com
Twitter :http://twitter.com/mchv
Professional support : http://obeo.fr/pages/maintenance-and-support/
Re: GMF/GEF editor in the first page of a SharedHeaderFormEditor [message #662209 is a reply to message #661958] Tue, 29 March 2011 14:12 Go to previous message
Abu Zak is currently offline Abu Zak
Messages: 11
Registered: February 2010
Junior Member
This works.

Thank you.
Previous Topic:Problem with selection of Treeitem
Next Topic:Entering text in a input box in a wizard
Goto Forum:
  


Current Time: Sat Aug 30 16:35:41 EDT 2014

Powered by FUDForum. Page generated in 0.01536 seconds