Changeset 1884 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/.settings/org.eclipse.jdt.core.prefs
r1650 r1884 1 # Sat Jun 06 11:00:10CEST 20091 #Thu Jul 09 20:42:21 CEST 2009 2 2 eclipse.preferences.version=1 3 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 4 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 5 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 org.eclipse.jdt.core.compiler.compliance=1.5 7 org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 org.eclipse.jdt.core.compiler.debug.sourceFile=generate 3 10 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 11 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 4 12 org.eclipse.jdt.core.compiler.problem.autoboxing=ignore 5 13 org.eclipse.jdt.core.compiler.problem.deprecation=warning … … 8 16 org.eclipse.jdt.core.compiler.problem.discouragedReference=warning 9 17 org.eclipse.jdt.core.compiler.problem.emptyStatement=warning 18 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 10 19 org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore 11 20 org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled … … 32 41 org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore 33 42 org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning 34 org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore 43 org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning 44 org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore 35 45 org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled 36 46 org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning … … 41 51 org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore 42 52 org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning 43 org.eclipse.jdt.core.compiler.problem.unnecessaryElse= warning53 org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore 44 54 org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning 45 55 org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore 46 56 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning 57 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled 58 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled 47 59 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled 48 60 org.eclipse.jdt.core.compiler.problem.unusedImport=warning … … 54 66 org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled 55 67 org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning 68 org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning 56 69 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning 70 org.eclipse.jdt.core.compiler.source=1.5 57 71 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false 58 72 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 … … 101 115 org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false 102 116 org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false 103 org.eclipse.jdt.core.formatter.comment.format_block_comments= true117 org.eclipse.jdt.core.formatter.comment.format_block_comments=false 104 118 org.eclipse.jdt.core.formatter.comment.format_comments=true 105 119 org.eclipse.jdt.core.formatter.comment.format_header=false 106 120 org.eclipse.jdt.core.formatter.comment.format_html=false 107 org.eclipse.jdt.core.formatter.comment.format_javadoc_comments= true108 org.eclipse.jdt.core.formatter.comment.format_line_comments= true121 org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=false 122 org.eclipse.jdt.core.formatter.comment.format_line_comments=false 109 123 org.eclipse.jdt.core.formatter.comment.format_source_code=false 110 124 org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r1868 r1884 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.event.ActionEvent; … … 25 27 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener; 26 28 27 import static org.openstreetmap.josm.tools.I18n.tr;28 29 29 public class MemberTable extends JTable implements IMemberModelListener { 30 30 … … 39 39 /** 40 40 * constructor 41 * 41 * 42 42 * @param model 43 43 * @param columnModel … … 75 75 * adjusts the width of the columns for the tag name and the tag value to the width of the 76 76 * scroll panes viewport. 77 * 77 * 78 78 * Note: {@see #getPreferredScrollableViewportSize()} did not work as expected 79 * 79 * 80 80 * @param scrollPaneWidth the width of the scroll panes viewport 81 81 */ … … 104 104 * <li>it jumps over cells in the first column</li> <li>it automatically add a new empty row 105 105 * when the user leaves the last cell in the table</li> <ul> 106 * 107 * 106 * 107 * 108 108 */ 109 109 class SelectNextColumnCellAction extends AbstractAction { … … 132 132 * Action to be run when the user navigates to the previous cell in the table, for instance by 133 133 * pressing Shift-TAB 134 * 134 * 135 135 */ 136 136 class SelectPreviousColumnCellAction extends AbstractAction { … … 143 143 } 144 144 145 if (col == 0 && row == 0) {145 if (col <= 0 && row <= 0) { 146 146 // change nothing 147 147 } else if (row > 0) { … … 166 166 /** 167 167 * Replies the popup menu for this table 168 * 168 * 169 169 * @return the popup menu 170 170 */ -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/TagTable.java
r1781 r1884 35 35 /** 36 36 * This is the tabular editor component for OSM tags. 37 * 37 * 38 38 */ 39 39 @SuppressWarnings("serial") … … 48 48 * The table has two columns. The first column is used for editing rendering and 49 49 * editing tag keys, the second for rendering and editing tag values. 50 * 50 * 51 51 */ 52 52 static class TagTableColumnModel extends DefaultTableColumnModel { … … 83 83 * last cell in the table</li> 84 84 * <ul> 85 * 85 * 86 86 * @author gubaer 87 87 * … … 132 132 133 133 134 if (col == 0 && row == 0) {134 if (col <= 0 && row <= 0) { 135 135 // change nothing 136 136 } else if (col == 1) { … … 147 147 * Action to be run when the user invokes a delete action on the table, for 148 148 * instance by pressing DEL. 149 * 149 * 150 150 * Depending on the shape on the current selection the action deletes individual 151 151 * values or entire tags from the model. 152 * 152 * 153 153 * If the current selection consists of cells in the second column only, the keys of 154 154 * the selected tags are set to the empty string. 155 * 155 * 156 156 * If the current selection consists of cell in the third column only, the values of the 157 157 * selected tags are set to the empty string. 158 * 158 * 159 159 * If the current selection consists of cells in the second and the third column, 160 160 * the selected tags are removed from the model. 161 * 161 * 162 162 * This action listens to the table selection. It becomes enabled when the selection 163 163 * is non-empty, otherwise it is disabled. 164 * 164 * 165 165 * 166 166 */ … … 248 248 /** 249 249 * Action to be run when the user adds a new tag. 250 * 250 * 251 251 * 252 252 */ … … 274 274 275 275 /** 276 * 276 * 277 277 * @return the delete action used by this table 278 278 */ … … 326 326 /** 327 327 * constructor 328 * 328 * 329 329 * @param model 330 330 * @param columnModel … … 340 340 * adjusts the width of the columns for the tag name and the tag value 341 341 * to the width of the scroll panes viewport. 342 * 342 * 343 343 * Note: {@see #getPreferredScrollableViewportSize()} did not work as expected 344 * 344 * 345 345 * @param scrollPaneWidth the width of the scroll panes viewport 346 346 */
Note:
See TracChangeset
for help on using the changeset viewer.