Bug 156334 - [Import/Export] Proposal for some changes in WizardExportResourcesPage
Summary: [Import/Export] Proposal for some changes in WizardExportResourcesPage
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-09-06 05:34 EDT by Joao Assuncao CLA
Modified: 2019-09-06 16:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joao Assuncao CLA 2006-09-06 05:34:25 EDT
I think the class WizardExportResourcesPage would be more useful if
subclasses could filter the elements shown in the tree and in the list.
Currently this class shows even hidden folders something that in my opinion
most of the times should not be presented to the user.

I propose something like this:

In WizardExportResourcesPage.createResourcesGroup(Composite parent) :
...
this.resourceGroup = new ResourceTreeAndListGroup(parent, input,        
getResourceProvider(getTreeResourceFilter()),
WorkbenchLabelProvider.getDecoratingWorkbenchLabelProvider(),
getResourceProvider(getListResourceFilter()), 
WorkbenchLabelProvider.getDecoratingWorkbenchLabelProvider(), SWT.NONE,
DialogUtil.inRegularFontMode(parent));
...

protected ITreeContentProvider getResourceProvider(final IResourceFilter
filter) {
...
for (int i = 0; i < members.length; i++) {
        if(filter.isSelectable(members[i])){
                results.add(members[i]);
        }
}
...

protected IResourceFilter getTreeResourceFilter(){
...
}

protected IResourceFilter getListResourceFilter() {
...
}

public interface IResourceFilter{
        boolean isSelectable(IResource resource);
}
Comment 1 Susan McCourt CLA 2009-07-15 12:14:00 EDT
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:14:31 EDT
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.