Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Folding a list
Folding a list [message #329520] Thu, 26 June 2008 19:27 Go to next message
Eclipse UserFriend
Originally posted by: prasad.chand.gmail.com

Hi all,

I need to fold a list (jface - ListViewer). I had searched and I came
across org.eclipse.jface.text.source.projection that enables folding a
text. But is there anything similar for listviewers? Is there any other
way to implement this in listviewer?

Thanks,
Prasad
Re: Folding a list [message #329536 is a reply to message #329520] Fri, 27 June 2008 12:07 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Prasad Chand wrote:
> Hi all,
>
> I need to fold a list (jface - ListViewer). I had searched and I came
> across org.eclipse.jface.text.source.projection that enables folding a
> text. But is there anything similar for listviewers? Is there any other
> way to implement this in listviewer?

Fold a list in what way? Could you use a TreeViewer and put the things
to be folded into different categories (make a 2 level tree, as it were)?

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: Folding a list [message #329549 is a reply to message #329536] Fri, 27 June 2008 16:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prasad.chand.gmail.com

What I mean by folding a list is I would like to make the contents (the
individual list entries) disappear.

Yes TreeViewer is a good idea. I have a couple of lists that I wish to
fold. I can use a treeviewer to make the list entries child of a list head.

Thanks for the tip.

Prasad


Paul Webster wrote:
> Prasad Chand wrote:
>> Hi all,
>>
>> I need to fold a list (jface - ListViewer). I had searched and I came
>> across org.eclipse.jface.text.source.projection that enables folding a
>> text. But is there anything similar for listviewers? Is there any
>> other way to implement this in listviewer?
>
> Fold a list in what way? Could you use a TreeViewer and put the things
> to be folded into different categories (make a 2 level tree, as it were)?
>
> PW
>
>
Re: Folding a list [message #329551 is a reply to message #329536] Fri, 27 June 2008 17:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prasad.chand.gmail.com

I am facing a problem accomplishing this using TreeViewer. I have three
different entities , a list and two tables. I would like to make them
collapsible - by this I mean I would like to make their contents
disappear on clicking leaving only the list/table label name. As the
"children" are not homogeneous TreeViewer seems off the list.

How can I accomplish this? In swing there is collapsible pane to achieve
it? Is there anything in eclipse/swt/jface to get this done?

Thanks,
Prasad


Paul Webster wrote:
> Prasad Chand wrote:
>> Hi all,
>>
>> I need to fold a list (jface - ListViewer). I had searched and I came
>> across org.eclipse.jface.text.source.projection that enables folding a
>> text. But is there anything similar for listviewers? Is there any
>> other way to implement this in listviewer?
>
> Fold a list in what way? Could you use a TreeViewer and put the things
> to be folded into different categories (make a 2 level tree, as it were)?
>
> PW
>
>
Re: Folding a list [message #329556 is a reply to message #329551] Fri, 27 June 2008 18:25 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Prasad Chand wrote:
> I am facing a problem accomplishing this using TreeViewer. I have three
> different entities , a list and two tables. I would like to make them
> collapsible - by this I mean I would like to make their contents
> disappear on clicking leaving only the list/table label name. As the
> "children" are not homogeneous TreeViewer seems off the list.
>
> How can I accomplish this? In swing there is collapsible pane to achieve
> it? Is there anything in eclipse/swt/jface to get this done?

See a org.eclipse.ui.forms.widgets.Twistie which I believe is in
org.eclipse.ui.forms. This can be used to get the Twistie behaviour,
like you see on the Java>Compiler preference pages.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:perspective Shortcut
Next Topic:Project.create out side workspace
Goto Forum:
  


Current Time: Tue Jul 16 15:46:39 GMT 2024

Powered by FUDForum. Page generated in 0.03478 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top