Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums
-
SWTBotView.show() ignores secondary Ids
https://www.eclipse.org/forums/index.php/mv/msg/220850/697050/#msg_697050
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$
}
}
});
}
]]>
Franck Mising name
2011-07-15T12:12:12-00:00
-
Re: SWTBotView.show() ignores secondary Ids
https://www.eclipse.org/forums/index.php/mv/msg/220850/698719/#msg_698719
--
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$
> }
> }
> });
> }
>]]>
Ketan Padegaonkar
2011-07-20T04:47:36-00:00