Bug 176461 - [api] Request API to expand nodes in the system view to arbitrary level
Summary: [api] Request API to expand nodes in the system view to arbitrary level
Status: ASSIGNED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: dsdp.tm.rse-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: api, investigate
Depends on: 166338
Blocks: 173518 187739
  Show dependency tree
 
Reported: 2007-03-06 03:52 EST by Tobias Schwarz CLA
Modified: 2012-11-19 04:57 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Schwarz CLA 2007-03-06 03:52:00 EST
Build ID: eclipse322 rse20m5

i tried to expand the tree of the system view after a connect was done.
but all i brought up to work was an expand up to the first level inside a filter (the children of the filter reference). and this only worked when expanding each step in the hirarchy (expand the connection, expand the subsystem, expand the filter reference).
but when trying to expand the first element inside the filter reference nothing happens.

please explain an easy way how to expand a tree path within the system view or fix this problem.
Comment 1 Martin Oberhuber CLA 2007-03-06 04:20:42 EST
Can you reproduce this issue with any of the subsystems that are available
in Open Source? The "Developer" subsystem from the examples.tutorial project,
for instance?

Also note that your configuration (eclipse3.2.2 / rse 2.0m5) is invalid.
RSE 2.0M5 REQUIRES Eclipse 3.3M5. Anything else may lead to unexpected issues.
Comment 2 Tobias Schwarz CLA 2007-03-07 03:20:26 EST
used eclipse version (target platform) was 3.3m5 (e3.2.2 is only used for  development).

i think it is not very hard to repoduce this, but what i need is an easy way how to do the expand. i was not able to find a way to do this.

firing an expand event does not work on elements that are collapsed, do a direct expandToLevel in the SystemView even has the same problem, because the expand was not implemented in the SystemView and so it could not work with asynchronous tree expansions.
expanding each level works for connection, subsytsem and filter reference, but because of asynchronous children fetching, this does not work for the children of a filter. because there is no callback when all children of a filter are loaded, when should i call the expand??
Comment 3 Martin Oberhuber CLA 2007-04-06 15:13:57 EDT
For subsystems that do not support deferred queries, the situation should be better now with the fix for bug 180575 - expansion on an existing model should work synchronously now.

Changing severity to enhancement in order to address in early M7, coming up with additional API including callbacks (available by resolution of bug 166338 and bug 176603), which should also help resolving the sluggish performance of RemoteFolderDialog.setPreselection() (bug 174944).
Comment 4 Martin Oberhuber CLA 2007-05-18 09:40:35 EDT
This may actually not be an API change when just the event EVENT_SELECT_EXPAND is changed such that the "parent" parameter (which is currently unused) is used to carry an Integer (giving a depth to expand to), or a String[] (giving a path of child names to expand).
Comment 5 Martin Oberhuber CLA 2007-06-05 12:37:02 EDT
Deferring to the Future.