Bug 73945 - [Progress] Why doesn't IDeferredWorkbenchAdapter.isContainer() take an argument?
Summary: [Progress] Why doesn't IDeferredWorkbenchAdapter.isContainer() take an argument?
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, needinfo
Depends on:
Blocks:
 
Reported: 2004-09-14 19:21 EDT by Silvio Böhler CLA
Modified: 2009-08-30 02:11 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 Silvio Böhler CLA 2004-09-14 19:21:25 EDT
API Request:

As it is, the method is only useful to find out whether all generic objects of
the adapted class have children or not. 

I have a case where I know in advance that only a subset of my adapted tree
objects have children. I would like to use the adapter such that this
information can be found out for every single object.

Thus, I would like a method on IDeferredWorkbenchAdapter as follows:

public boolean isContainer(Object element);
or
public boolean hasChildren(Object element);
Comment 1 Tod Creasey CLA 2004-09-15 09:13:11 EDT
Please feel free to attach a patch if you have a suggested implementation
Comment 2 Michael Valenta CLA 2004-09-15 09:28:51 EDT
If you do provide a patch, it will need to be defined in yet another sub-
interface because IDeferredWorkbenchAdapter in implemented by clients and 
cannot be changed. Given that this is the case, you may want to investigate 
other solutions. Could you register a different adapter for the non-container 
objects (i.e. it seems to me that you wouldn't want to use deferred fetching 
for non-containers anyway)?
Comment 3 Tod Creasey CLA 2006-04-07 12:03:04 EDT
There are currently no plans to work on this feature
Comment 4 Denis Roy CLA 2009-08-30 02:11:38 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.