Bug 473141 - Show View Dialog in RCP - Different Behaviour in Mars Release
Summary: Show View Dialog in RCP - Different Behaviour in Mars Release
Status: CLOSED DUPLICATE of bug 471782
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2015-07-21 04:13 EDT by Marcel Austenfeld CLA
Modified: 2016-06-02 11:26 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Austenfeld CLA 2015-07-21 04:13:25 EDT
I'm reusing the Eclipse Show View dialog UI in a RCP application.

http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fruntime_registry.htm

ContributionItemFactory.VIEWS_SHORTLIST.create(window);

My RCP application is based on Eclipse 3 plugins. 

Since Eclipse 4.5.0 Mars the dialog logic is broken for me because the dialog now seems to open a new instance of the view, e.g., in another perspective. Before in Eclipse 4.4.2 the same view (instance of the view) was reopened.

If I open the view with the id programmatically everything is working fine:

IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
page.showView(id);

I think this changed behaviour could also break the application logic of many other RCP based products if they expect the same instance of the view.
Comment 1 Patrik Suzzi CLA 2016-04-01 14:52:06 EDT
Marcel, that was a nice description, but I'm going to ask you more:

Could you please provide a minimal workspace showing the error; a stack trace or the steps to reproduce?

Many thanks!
Comment 2 Patrik Suzzi CLA 2016-06-01 12:21:06 EDT
Lowering severity to major.

Is this bug still actual ?
Comment 3 Marcel Austenfeld CLA 2016-06-02 06:15:49 EDT
(In reply to Patrik Suzzi from comment #2)
> Lowering severity to major.
> 
> Is this bug still actual ?

Dear Patrik,

it's been a while that I read this bug report. 

So sorry for the late reply.

However it seems that in the meantime the bug was resolved.

I tried it recently on Windows 10 with Eclipse 3.6 RC2 and it worked as expected so far.
Comment 4 Brian de Alwis CLA 2016-06-02 11:26:54 EDT
Sounds like a dupe of bug 471782

*** This bug has been marked as a duplicate of bug 471782 ***