Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Outline View
Outline View [message #326174] Mon, 10 March 2008 13:24 Go to next message
Manuel Selva is currently offline Manuel SelvaFriend
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi all,

I want to contribute my own content to the Eclipse outline view. It seems
that this view is linked to the current Editor, is there any way for me to
change the content of the outline view when my own view is given focus ?

In fact i created a new eclipse view displaying some informations as a
Time chart. When the user is using this view (== view has focus) i want to
display a Thumbnail of my chart in the outline view. Is there any way to
do this ?

Regards,

Manu
http://manuelselva.st.com


Re: Outline View [message #326175 is a reply to message #326174] Mon, 10 March 2008 13:45 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Manuel Selva wrote:
> Hi all,
>
> I want to contribute my own content to the Eclipse outline view. It
> seems that this view is linked to the current Editor, is there any way
> for me to change the content of the outline view when my own view is
> given focus ?

The standard ContentOutline view just cares about editor ... see
org.eclipse.ui.views.contentoutline.ContentOutline.isImporta nt(IWorkbenchPart)

So you wouldn't be able to contribute your view content to the standard
outline view, but you could implement your own by either subclassing
PageBookView and doing similar work or potentially subclassing
ContentOutline (although I'm not so sure how that would go).

Later,
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: Outline View [message #326176 is a reply to message #326175] Mon, 10 March 2008 14:18 Go to previous messageGo to next message
Manuel Selva is currently offline Manuel SelvaFriend
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi Paul,

After looking at Eclipse ContentOutline class i reached the isImportant
method and changed it to always return true :

//We only care about editors
//return (part instanceof IEditorPart);
return true;

My ViewPart is able to adapt to IOutlineContent and is asked for its
content outline control each time it's necessary.

Do you think it would be reasonable to open the Standard outline view to
also care about view part ?

You suggested me to create my own outline view ? But the user will be
confuse with 2 outline view .... Do you agree ?

Thanks for your support

Manu
http://manuelselva.wordpress.com


Re: Outline View [message #326179 is a reply to message #326176] Mon, 10 March 2008 14:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Manuel,

Probably that's not reasonable since this would imply that any time any
other view gets focus, the outline view will want to show the outline
view for that view, but your view would be the only one that supports
it, so in all other cases, the outline view would go blank. I don't
think post users would want to see such a change in behavior...


Manuel Selva wrote:
> Hi Paul,
>
> After looking at Eclipse ContentOutline class i reached the
> isImportant method and changed it to always return true :
>
> //We only care about editors
> //return (part instanceof IEditorPart);
> return true;
>
> My ViewPart is able to adapt to IOutlineContent and is asked for its
> content outline control each time it's necessary.
> Do you think it would be reasonable to open the Standard outline view
> to also care about view part ?
> You suggested me to create my own outline view ? But the user will be
> confuse with 2 outline view .... Do you agree ?
>
> Thanks for your support
>
> Manu
> http://manuelselva.wordpress.com
>
Re: Outline View [message #326181 is a reply to message #326179] Mon, 10 March 2008 15:43 Go to previous message
Manuel Selva is currently offline Manuel SelvaFriend
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Ed,

You are right, it wouldn't be reasonable.

I 'll see how to implement my own outline view.

Thanks

Manu
http://manuelselva.wordpress.com


Previous Topic:Export Feature Based Product
Next Topic:Dynamically open a view and an editor
Goto Forum:
  


Current Time: Fri Jul 19 14:33:31 GMT 2024

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

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

Back to the top