eclipsespring-tool-suitespring-tools-4

How to enable Breadcrumb for a non java file?


Working with sts-4.5.1.RELEASE (Based on Eclipse)

Having a non java file, is not possible enable Breadcrumb

enter image description here

For a Java file, is possible enable Breadcrumb

enter image description here

Is possible enable Breadcrumb for a non java file?

Consider a multi-module project with testing using .properties and .sql files, I think is valuable have Breadcrumb to know at least the location for these files

Through breadcrumb is possible see and select the package content to select and open an interface or class or other type

Furthermore an extra advantage for java files is that is possible select a method. Of course it is not possible for a non java file, but again is possible know the location and use the package content selection to choice other file sql, xml, .properties etc..


Solution

  • EDIT: I just discovered the DevStyle plug-in that, among other things, provides a default breadcrumb in the toolbar:

    the DevStyle plugin provides breadcrumb even for non-Java files


    Breadcrumb is provided by the Java editor and thus not available for other files. As a workaround you can use the Link with Editor action Link with Editor icon that selects the open file in the explorer:

    demo of the Link with Editor action

    Arguably not as convenient as a breadcrumb but still help to locate a file.


    Note: the action is a toggle, which means that once you've clicked on it the explorer will automatically update its selection whenever the active editor changes. You have to click on the Link with Editor action Link with Editor icon again to disable it.