Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a separator to the Eclipse Outline view (like #pragma mark)

I know Xcode has a

#pragma mark  

feature where it allows you to insert arbitrary labels in outline views / method lists to document how code is segmented.

I haven't been able to find a similar feature for Eclipse. I can't help but feel that it's right under my nose, but searches on both SO and Google haven't been enlightening... anyone know how I might do this?

Or is there some hackish workaround? That would be awesome too.

like image 964
Steven Schlansker Avatar asked Feb 19 '10 21:02

Steven Schlansker


People also ask

How do you create an outline view in Eclipse?

The Outline View is displayed by default as part of the PHP Perspective. To manually open the view, go to Window | Show View | Other | PHP Tools | Outline.

What is outline in eclipse?

The Outline view displays an outline of a structured file that is currently open in the editor area, and lists structural elements. The contents of the Outline view are editor specific.


1 Answers

Eclipse outline view supports categories (with @category in javadoc) for showing additional information on methods. See the following screenshots for an example of such usage.

Category definition in the editor

Category and filtering in the Outline view

Unfortunately grouping by categories has not been implemented yet. There is an open feature request for this, but it is nearly four years old and clearly stated that it needs community effort. Personally I do not know such plugin.

like image 92
Csaba_H Avatar answered Sep 20 '22 15:09

Csaba_H