Community
Participate
Working Groups
If you select 'Convert Line Delimiters To' on a project with some large number of files, the UI freeze until all files are collected without any progress indication. The pop-up show up after a while though . There should be a progress monitor there IMHO
>The pop-up show up after a while though . I assume you mean the selection dialog. The conversion operation correctly takes a progress monitor but the SelectResourcesDialog does not and it would not help here because the code that takes long is in CheckBoxTreeViewer.setCheckedElements(Object[] elements) and CheckBoxTreeViewer.setGrayedElements(Object[] elements) which do not take a progress monitor. Test Case: 1. start fresh workspace 2. checkout 'org.eclipse.jdt.ui.refactoring.tests' from CVS 3. select it 4. File > Convert Line Delimiters To > Windows ==> you wait for some minutes (the Map that is passed to the CheckBoxTreeViewer methods has 4548 elements). NOTE: our class (SelectResourcesBlock) that calls the CheckBoxTreeViewer is a copy of the internal ResourceTreeAndListGroup class. There is bug 147027 to make that class API.
Restored priority and target since the bug got moved to another component.
Here is a trick to make the CheckBoxTreeViewer.set*Elements faster: Before populating the tree call: CheckBoxTreeViewer.setUseHashlookup(true); Makes a *huge* difference for big trees
Grrr. Never copy code without reviewing it. I assumed that the copied ResourceTreeAndListGroup uses hash look up. I've now fixed this in our copy. I suggest to fix this in Platform UI code as well (and make it API ;-).
Hitesh is now responsible for watching bugs in the [Viewers] component area.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
This bug has been marked with as "stalebug" for some time now. I mark this bug as "worksforme" to indicate that no work is planned here. If this bug is still relevant for the latest release, please reopen the bug and remote the "stalebug" whiteboard tag.