Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Breadcrumb Questions
Breadcrumb Questions [message #517600] Mon, 01 March 2010 08:50 Go to next message
Catalin Gerea is currently offline Catalin Gerea
Messages: 89
Registered: July 2009
Location: Bucharest, Romania
Member

1. How is the breadcrumb displayed for a java file? It is a composite that has images and text dynamically updated depending on the position in the java file? Or it is displayed in another way: e.g. a toolbar?

2. How can I create my own custom breadcrumb? Can I create one for a tree (e.g. add a breadcrumb to the package explorer)?

Thanks for any info regarding the breadcrumb.


Time is what you make of it.
Re: Breadcrumb Questions [message #517604 is a reply to message #517600] Mon, 01 March 2010 09:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25939
Registered: July 2009
Senior Member
Catalin,

Maybe you can use PDE Spy to answer this yourself:
http://www.eclipse.org/pde/incubator/spy/

Catalin Gerea wrote:
> 1. How is the breadcrumb displayed for a java file? It is a composite
> that has images and text dynamically updated depending on the position
> in the java file? Or it is displayed in another way: e.g. a toolbar?
>
> 2. How can I create my own custom breadcrumb? Can I create one for a
> tree (e.g. add a breadcrumb to the package explorer)?
>
> Thanks for any info regarding the breadcrumb.
Re: Breadcrumb Questions [message #517605 is a reply to message #517600] Mon, 01 March 2010 09:19 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
Catalin Gerea wrote:
> 1. How is the breadcrumb displayed for a java file? It is a composite
> that has images and text dynamically updated depending on the position
> in the java file? Or it is displayed in another way: e.g. a toolbar?
Start by looking at the classes in
org.eclipse.jdt.internal.ui.javaeditor.breadcrumb.
>
> 2. How can I create my own custom breadcrumb? Can I create one for a
> tree (e.g. add a breadcrumb to the package explorer)?
You you cannot add this to other views. Only if you implement the view
or editor yourself. There's also no API to (re-) use the existing
breadcrumb code.

Dani
>
> Thanks for any info regarding the breadcrumb.
Previous Topic:Associate file-extension to 2 diff content-types based on file name patterns
Next Topic:EFS and IProject
Goto Forum:
  


Current Time: Tue Jul 29 12:58:45 EDT 2014

Powered by FUDForum. Page generated in 0.02613 seconds