Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBotView.show() ignores secondary Ids
SWTBotView.show() ignores secondary Ids [message #697050] Fri, 15 July 2011 12:12 Go to next message
Franck Mising name is currently offline Franck Mising nameFriend
Messages: 92
Registered: July 2009
Location: France
Member
SWTBotView.show() currently ignores secondary view IDs, I think overriding show() in that class with the implementation below below takes care of the problem.

public void show()
{
syncExec(new VoidResult() {
public void run() {
final IViewReference part = SWTBotView.this.partReference;
try {
part.getPage().activate(part.getPart(true));
part.getPage().showView(part.getId(), part.getSecondaryId(), IWorkbenchPage.VIEW_ACTIVATE);
} catch (PartInitException e) {
throw new RuntimeException("Could not show partReference - " + part.getPartName(), e); //$NON-NLS-1$
}
}
});
}

[Updated on: Fri, 15 July 2011 12:12]

Report message to a moderator

Re: SWTBotView.show() ignores secondary Ids [message #698719 is a reply to message #697050] Wed, 20 July 2011 04:47 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you file a bug with a test case on how to reproduce this?

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot | @ketanpkr

On 7/15/11 5:12 AM, Franck wrote:
> SWTBotView currently ignores secondary view IDs, I think overriding
> show() in that class with the implementation below below takes care of
> the problem.
>
> public void show()
> {
> syncExec(new VoidResult() {
> public void run() {
> final IViewReference part = SWTBotView.this.partReference;
> try {
> part.getPage().activate(part.getPart(true));
> part.getPage().showView(part.getId(), part.getSecondaryId(),
> IWorkbenchPage.VIEW_ACTIVATE);
> } catch (PartInitException e) {
> throw new RuntimeException("Could not show partReference - " +
> part.getPartName(), e); //$NON-NLS-1$
> }
> }
> });
> }
>
Previous Topic:How to find the selected row in the NatTable Grid ?
Next Topic:Right clic on editor
Goto Forum:
  


Current Time: Tue Apr 16 06:01:42 GMT 2024

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

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

Back to the top