[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: change the view of a perspective

Christian,

As for UI manipulations, the view layout is usually considered as something user-customizable - see http://wiki.eclipse.org/FAQ_How_do_I_set_the_size_or_position_of_my_view%3F - so (IMHO) your UI scenario better fits switching a content in the same view, for example with StackLayout.


My previous answer was mainly related to the second question of yours, "parametrise the detailed-car-View with a parameter" - I meant that the information in cross-view interaction is usually passed as a part of selection data or similar listener-based approach, not "parameter" of some imperative invocation.


~
Roman

Christian Herrmann wrote:
Hello Roman,

According to your links, I think you missunderstood me:

Roman Porotnikov wrote:
In addition, some useful scenarios are described at

http://www-128.ibm.com/developerworks/opensource/library/os-ecllink

But there isn't described how I substitute the view with another. I want der overview not to be shown when I select the detail view.



~ Roman

Roman Porotnikov wrote:
Christian,

the typical solution is to use a listener-based approach with the Selection Service:

http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html

Here they use a a pagebook and do not switch between views.

I simply want to switch the view of a perspective dynamically inclusive hand over a parameter to the new view.

best regards,
christian



~
Roman

Christian Herrmann wrote:
Hello,

I want to make a simple coding:

There is a view with a table on a given perspective containing i.e. cars. When a car of the table is clicked, the view of the perspective should be switched to a detailed view on the perspective with more information about the clicked car.

Problems:
1) How can the overview-view tell its perspective to change the view to the detail-car-view?
2) How can I parametrise the detailed-car-View with a parameter (Identifier of the clicked car)?


best regards,
christian