Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » need of help in changing icons for view and ...
need of help in changing icons for view and ... [message #8934] Thu, 24 April 2003 00:21 Go to next message
Eclipse UserFriend
Originally posted by: pradheept.hotmail.com

1 . How 2 change the icon for at the Run time for a view/perspective.
or
is it possible to set icon programatically for a view/ perspective. if
yes how 2 do that?

2. ResoursesPlugin.getWorkspace.getRoot().getProject()..... -->is null but
ResoursesPlugin.getWorkspace.getRoot() is giving
current project how to access current
working project.

ples send some snippets to my id.

PraDheeP

(pradheept@hotmail.com)
Re: need of help in changing icons for view and ... [message #14124 is a reply to message #8934] Thu, 24 April 2003 16:58 Go to previous message
Eclipse UserFriend
Originally posted by: knut_radloff.oti.com

"pradheep" <pradheept@hotmail.com> wrote in message news:b87onv$7b8$1@rogue.oti.com...
> 1 . How 2 change the icon for at the Run time for a view/perspective.
> or
> is it possible to set icon programatically for a view/ perspective. if
> yes how 2 do that?

Not possible for perspectives. For views you can set the icon if you subclass and call WorkbenchPart.setTitleImage.

> 2. ResoursesPlugin.getWorkspace.getRoot().getProject()..... -->is null but
> ResoursesPlugin.getWorkspace.getRoot() is giving
> current project how to access current
> working project.

There is no notion of current working project in the workspace. What you probably want is get the selection of a view. In general,
you do this by getting the workbench site and from it the selection provider. If you have access to the viewer (e.g., TreeViewer)
you can get the selection from that as well (because Viewer implements ISelectionProvider).

Knut
Previous Topic:how 2 restrict /disable a view in other perspectives
Next Topic:Re: How about a Virtual Resource tree?
Goto Forum:
  


Current Time: Thu May 15 16:11:48 EDT 2025

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

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

Back to the top