Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] Determine when a project import has finished

Hello,

I am writing with regards to https://bugs.eclipse.org/bugs/show_bug.cgi?id=306025

The following point was made there:
>> Making the change in ImportOperation would just be a workaround
for the bug in the client (listener) code.

Can you please comment on on how the client code should handle this scenario, in case 306025 is not fixed?

Again, the scenario is to trigger one action on the whole set of resources (projects) that got created. Obviously the listener has to collect events until "something" happens. But what exactly should we wait for?

A thing I came up with is to wait for the workspace root scheduling rule to apply.

This is obviously a very crude approach. First it is a usability  problem because the action triggers very late, at a point when the user does not expect it. To make matters worse the action is a modal dialog / wizard.

Secondly, this greatly complicates my code, because at the point when the action does get triggerred, the set of resources in question may have changed significantly.

Could you please comment on a more sensible approach?
Thank you!

Regards, Dimitar

Back to the top