Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Rules for formatter?
Rules for formatter? [message #1031844] Tue, 02 April 2013 05:16
Eclipse UserFriend
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 08:56] by Moderator

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


Current Time: Wed Jul 16 04:56:54 EDT 2025

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

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

Back to the top