Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Rules for formatter?
Rules for formatter? [message #1031844] Tue, 02 April 2013 09:16
Adi Hubba is currently offline Adi HubbaFriend
Messages: 1
Registered: April 2013
Junior Member
Hello,

i have a GUI framework which described the GUI in a xml like code style with annotations.

for examle:

public class Test{
 
  @GUIANFANG
     @SPALTENANFANG
        @COMPONENTINFO(width=100, height=100)
        JPanel panel = new JPanel();
     @SPALTENENDE
     @SPALTENANFANG
        @COMPONENTINFO(width=100, height=100)
        JPanel panel = new JPanel();
     @SPALTENENDE
  @GUIENDE
  int eof=0;
}


after i use the formatter, the code will look like this:
public class Test{
 
  @GUIANFANG
  @SPALTENANFANG
  @COMPONENTINFO(width=100, height=100)
  JPanel panel = new JPanel();
  
  @SPALTENENDE
  @SPALTENANFANG
  @COMPONENTINFO(width=100, height=100)
  JPanel panel = new JPanel();
  
  @SPALTENENDE
  @GUIENDE
  int eof=0;
}


can i somehow define rules, that for example if there is an annotation "@GUIANFANG", the next line should be indented?

thanks

PS: i need this for indigo

[Updated on: Tue, 02 April 2013 12:56]

Report message to a moderator

Previous Topic:Eclipse with Android plugin Lags really bad
Next Topic:xsd namespace
Goto Forum:
  


Current Time: Thu Apr 25 12:59:26 GMT 2024

Powered by FUDForum. Page generated in 0.03051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top