Vissza

Creating Eclipse plugins - Java member sorter

  Benjámin Hajnal

  2016.01.08. 11:50

Our company has a specific Java Coding Standards definition which Eclipse cannot always satisfy.

I wanted my source code's members to be sorted automatically as our policy requires but the IDE doesn't provide enough configuration opportunities.

 

So I started to discover the world of the Eclipse plugin development...

Firts I created a new Plugin Project with the Hello World Command sample in Eclipse.

After a while my idea became an open-source Eclipse Plugin: https://github.com/Ixenit/eclipsemembersort

 

Installation

Install the plugin from the eclipse marketplace or drag the Drag to your running Eclipse workspace to install MemberSort button to your Eclipse instance.

Usage

Use the screenshot: left icon to reorder the members in the open Java file or below the selected package (in Package Explorer).

The plugin is avaible through Edit > Sort members too.

If the icon is not displayed you can enable it from the Customize Perspective dialog.

screenshot: left

 

Configuration

The preferences could be found in Preferences > General > Appearance.

Here you can enable or disable ordering by name or configure the ordering rules.

screenshot: left


   

Megjegyzések
Még nincsenek hozzászólások. Légy első!

Címkefelhő

Legutóbbi bloggerek

Adrienn Keszőcze
Bejegyzések: 3
Csillagok: 0
Dátum: 2021.01.26.
Pál Dobosi
Bejegyzések: 3
Csillagok: 0
Dátum: 2021.01.13.
László Németh
Bejegyzések: 1
Csillagok: 0
Dátum: 2020.11.17.
Bernadett Bertalanné Szemes
Bejegyzések: 2
Csillagok: 0
Dátum: 2020.10.20.
Sándor Salamon
Bejegyzések: 1
Csillagok: 0
Dátum: 2020.10.14.

Kapcsolat