Bug 43050 - Formatting long arguments not very readable
Summary: Formatting long arguments not very readable
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-12 15:55 EDT by Tonny Madsen CLA
Modified: 2003-10-14 07:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tonny Madsen CLA 2003-09-12 15:55:22 EDT
[I'm not really sure whether this is an enhancement, but...]

If you format anything like the following class, then note that the continued 
arguments and the statements of the following block are aligned, which can be 
very difficult to read.

Please indent the continues arguments more (or less) to make it readable....

// =========================================================

import java.awt.Component;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

public class TableCellRendererExample implements TableCellRenderer {
    public Component getTableCellRendererComponent(
        JTable table,
        Object value,
        boolean isSelected,
        boolean hasFocus,
        int row,
        int column) {
        return null;
    }
}
Comment 1 Dani Megert CLA 2003-09-15 03:30:59 EDT
Formatter is contributed by Jdt Core
Comment 2 Olivier Thomann CLA 2003-10-03 10:39:50 EDT
This is improved with the new formatter.
Fixed and released in HEAD.
Regression test added.
Comment 3 David Audel CLA 2003-10-14 07:31:04 EDT
Verified.