Community
Participate
Working Groups
The IPerspective has a method showView(String viewId) that will: - open view if not open - bring it to front if stacked - activate and transfer focus This is proper behaviour is most cases, but it is wrong for property sheet. Views that depend on property sheet normally provide 'Properties' action on the pop-up menu for the selected object. Performing the action should ensure that property sheet is visible. However, if showView is used, property sheet will be activated, and as a result it will loose the input object. In this case, proper behaviour would be: - open Properties if not open - bring it to front if stacked - hook to the currently active part and ask for property source - DO NOT ACTIVATE I suggest adding another 'showView' method with the following signature: showView(String viewId, boolean activate) You can copy the current implementation to this method and change the implementation of 'showView(String viewId)' to be public IViewPart showView(String viewId) { return showView(viewId, true); } This would ensure backward compatibility and also handle property sheet case. NOTES:
Deferring until development resources become available to consider this enhancement.
Reopened for investigation. The case seems suspicious. Activating the property sheet does not change its input, otherwise expanding/editing a property would never work.
This is probably not the case any more but was at the time the defect was opened.
Closing.