SWTBotView.show() ignores secondary Ids [message #697050] |
Fri, 15 July 2011 12:12 |
Franck Mising name 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02927 seconds