JavaFXPluginCodeFormatting

Revision as of 12:47, 5 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

JavaFX Plugin Code Formatting

Document Status Initial Draft

This is living document. Some parts of it are still unwritten.
If you are interested in changes in this document you might want to sign to this page RSS feed.

Contents


Indents

  • Continuation Indentation Size

Alignment and Braces

Braces Placement

  • Class Declaration
  • Same Line
  • New Line
  • New Line Half Indented
  • New Line Indented
  • Function Declaration
  • Same Line
  • New Line
  • New Line Half Indented
  • New Line Indented
  • Other
  • Same Line
  • New Line
  • New Line Half Indented
  • New Line Indented
  • Special "else if" Treatment
  • true
  • false

Multiline Alignment

  • Function Parameters
  • Implements List
  • Binary Operators
  • Assignment
  • Array Initializer
  • Method Call Arguments
  • Throws List
  • Ternary Operators
  • For
  • Parenthesized

Braces Generation

Constructions: "if", "for", "while",
"do...while"

Options:

  • Generate
  • Leave Alone
  • Eliminate

New Lines

Start from new/same line: "else", "while", "catch", "finally", "after modifiers"

Wrapping

Set wrapping for the following items:

  • Extends/Implements Keyword
  • Extends/Implements List
  • Function Parameters
  • Function Call Arguments
  • Chained Method Calls ?
  • Throws Keyword
  • Throws List
  • Array Initializer
  • For
  • For Statement
  • If Statement
  • While Statement
  • Do ... While Statement
  • Assert
  • Enum Constants
  • Annotations
  • Binary Operators
  • Ternary Operators
  • Assignment Operators

Supported options:

  • Always
  • Never
  • If Long

Blank Lines

Set number of blank lines before/after:

  • Before Package
  • After Package
  • Before Imports
  • After Imports
  • Before Class
  • After Class
  • After Class Header
  • Before Attribute
  • After Attribute
  • Before Function
  • After Function
  • Before Trigger
  • After Trigger

Spaces

Set or not spaces for:

  • Before Keywords:
  • "while"
  • "else"
  • "catch"
  • "finally"
  • Before Parentheses:
  • Function Declaration
  • Function Call
  • Operation Declaration
  • Operation Call
  • Trigger Declaration
  • "if"
  • "for"
  • "while"
  • "catch"
  • "switch"?
  • "synchronized"
  • Annotation Parameters?
  • Around Operators
  • Unary Operators
  • Binary Operators
  • Ternary Operators
  • Assignment Operators
  • Before Last Braces
  • Class Declaration
  • Function Declaration
  • Operation Declaration
  • Trigger Declaration
  • "if"
  • "else"
  • "while"
  • "for"
  • "do"
  • "switch"
  • "try"
  • "finally"
  • "synchronized"?
  • Type Cast
  • Annotation?
  • Braces
  • Array Initializer Brackets
  • Other
  • Before Comma
  • After Comma
  • Before Semicolon
  • After Semicolon
  • Before Colon
  • After Colon
  • After Type Cast
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo