| Summary: | [Viewers] Jface TreeViewer does not work If we have any cyclic dependencies | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Missing name Mising name <deshmukhamt> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | curtis.windatt.public, deshmukhamt |
| Version: | 4.4 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | stalebug | ||
|
Description
Missing name Mising name
Is there any way to handle this error. or how can i fix this issue. Moving to JFace JFace treeviewer content provider is not able to recognize cyclic dependencies and it keeps on doing recursive call to createTreeItem. Please resolve this issue. Hi, Could you attach a snippet that show the bug? I have my view CustomView which extends from ViewPart. And there is Content Provider. My Custom content provider extends from ITreeContentProvider and overridden all the method like getChildren , getParent()…
[code]
Class MyContentProvider extends ITreeContentProvider
{
Object[] getChildren()
{
---
}
}
Class CustomView extends ViewPart
{
@Override
protected StructuredViewer createViewer( Composite parent )
{
TreeViewer tv = new TreeViewer(parent, )
{
@Override
protected void createTreeItem( Widget parent, Object element, int index )
{
int index = insertAt( parent ) ? -1 : index;
super.createTreeItem( parent, element, indexToConsider );
}
}
}
}
[/code]
In all condition my tree expand correctly. But when My tree has any cyclic dependencies like A-->B-->A, createTreeItem gets called infinitely and application gets closed.
This sounds like an existing limitation of our tree viewers, unless you use the virtual trees and the lazy content providers. PW 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. |