Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » 2 little questions
2 little questions [message #284542] Wed, 27 April 2005 05:22 Go to next message
Eclipse UserFriend
Originally posted by: olivier.thirion.fr.thalesgroup.com

Hi,

I have two little questions.

First: Is there a way to hide pages of a MultiPageEditor depending on selection
in a View?

Second: I'd like to change the associated icon of a selection in a View
when there's a problem marker (like problems in Java: the icon of the
associated file is changed). How can I do that?

I hope you'll be able to help me.

Thanks in advance.

Fabrice
Re: 2 little questions [message #284592 is a reply to message #284542] Wed, 27 April 2005 11:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dr_wack.softhome.net

Replying to your second question:
You will need to add a resource change listener to the workspace so that
when markers are changed on any of the resources you can update your view
with different or overlay icons. But if you want to contribute such behavior
to the all those views that use workbench decorators (like the Resource
Navigator View) then you would need to extend the
"org.eclipse.ui.decorators" extension point.

"THIRION olivier" <olivier.thirion@fr.thalesgroup.com> wrote in message
news:426F59C9.512D1310@fr.thalesgroup.com...
> Hi,
>
> I have two little questions.
>
> First: Is there a way to hide pages of a MultiPageEditor depending on
selection
> in a View?
>
> Second: I'd like to change the associated icon of a selection in a View
> when there's a problem marker (like problems in Java: the icon of the
> associated file is changed). How can I do that?
>
> I hope you'll be able to help me.
>
> Thanks in advance.
>
> Fabrice
Re: 2 little questions [message #284793 is a reply to message #284592] Mon, 02 May 2005 07:46 Go to previous message
Eclipse UserFriend
Originally posted by: ragsbin77.yahoo.com

to your 1st question:
Given the view fires SelectionChangedEvent your editor can register itself
as ISelectionChangedListener for the view.
Based on the SelectionChangedEvent#getSelection() you can call
MultiPageEditorPart.removePage(int pageIndex) &
MultiPageEditorPart.addPage(Control control)

-Rags

Waqas Ilyas wrote:

> Replying to your second question:
> You will need to add a resource change listener to the workspace so that
> when markers are changed on any of the resources you can update your view
> with different or overlay icons. But if you want to contribute such behavior
> to the all those views that use workbench decorators (like the Resource
> Navigator View) then you would need to extend the
> "org.eclipse.ui.decorators" extension point.

> "THIRION olivier" <olivier.thirion@fr.thalesgroup.com> wrote in message
> news:426F59C9.512D1310@fr.thalesgroup.com...
>> Hi,
>>
>> I have two little questions.
>>
>> First: Is there a way to hide pages of a MultiPageEditor depending on
> selection
>> in a View?
>>
>> Second: I'd like to change the associated icon of a selection in a View
>> when there's a problem marker (like problems in Java: the icon of the
>> associated file is changed). How can I do that?
>>
>> I hope you'll be able to help me.
>>
>> Thanks in advance.
>>
>> Fabrice
Previous Topic:how can I make change to the existing ecliapse Java editor
Next Topic:Filters in Problems view
Goto Forum:
  


Current Time: Sat Jun 07 23:01:40 EDT 2025

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

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

Back to the top