Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341231

Summary: [breadcrumb][api] Make breadcrumb APIs as public APIs
Product: [Eclipse Project] JDT Reporter: Li Ding <lding>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, remy.suen
Version: 3.7Keywords: api
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Li Ding CLA 2011-03-29 09:48:30 EDT
Build Identifier: 

Breadcrumb navigation in JDT editor is very useful for navigation while saving screen real estate. I would like to use same feature in my project and I can see this feature is useful in many places. Unfortunately breadcrumb classes and APIs are in JDT UI internal packages which makes it hard to reuse or extend outside JDT. For example, I find that the debug breadcrumb is similar with java editor breadcrumb but not able to extend Java editor breadcrumb directly. 

Please consider to make breadcrumb infrastructure public and extensible.



Reproducible: Always
Comment 1 Remy Suen CLA 2011-03-29 09:56:05 EDT
(In reply to comment #0)
> Unfortunately breadcrumb classes and
> APIs are in JDT UI internal packages which makes it hard to reuse or extend
> outside JDT. For example, I find that the debug breadcrumb is similar with java
> editor breadcrumb but not able to extend Java editor breadcrumb directly.

Are you actually trying to _extend_ the breadcrumb in the Java editor to add stuff to the Java editor's breadcrumb or do you just want to add a breadcrumb viewer to your own view/editor?
Comment 2 Remy Suen CLA 2011-03-29 09:56:37 EDT
Also see bug 317752.
Comment 3 Li Ding CLA 2011-03-29 10:04:45 EDT
(In reply to comment #1)
> (In reply to comment #0)
> > Unfortunately breadcrumb classes and
> > APIs are in JDT UI internal packages which makes it hard to reuse or extend
> > outside JDT. For example, I find that the debug breadcrumb is similar with java
> > editor breadcrumb but not able to extend Java editor breadcrumb directly.
> 
> Are you actually trying to _extend_ the breadcrumb in the Java editor to add
> stuff to the Java editor's breadcrumb or do you just want to add a breadcrumb
> viewer to your own view/editor?

No, I don't intent to add more stuff on Java editor breadcrumb. Instead, add a breadcrumb viewer in my own view. JDT editor breadcrumb is fairly generic in most part (except some Java editor specific behavior), ie, IBreadcrumb, BreadcrumbViewer, BreadcrumbItemDetails, BreadcrumbItemDropDown etc. By setting specific content provider, label provider or event listeners, these infrastructure could be reused or extended. Therefore, it would be nice to refactor the common part out and move to common place.
Comment 4 Dani Megert CLA 2011-03-29 10:07:12 EDT
You want bug 317752 then.

*** This bug has been marked as a duplicate of bug 317752 ***