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 Hubba
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:JavaCorrectionProcessor.collectCorrections does not collect any available correction
Next Topic:xsd namespace
Goto Forum:
  


Current Time: Sun Oct 26 09:49:08 GMT 2014

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

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