Skip to content

Commit

Permalink
Fixed order of editable columns in taxonomy view
Browse files Browse the repository at this point in the history
The cell editor factory also needs to know about the new 'note' column.
  • Loading branch information
buchen committed Mar 24, 2014
1 parent 3e0ebe3 commit 14ee6eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ public boolean canModify(Object element, String property)
return super.canModify(element, property);
}
}) //
.editable("name") // //$NON-NLS-1$
.decimal("weight", Values.Weight) // //$NON-NLS-1$
.editable("name") //$NON-NLS-1$
.readonly("note") //$NON-NLS-1$
.decimal("weight", Values.Weight) //$NON-NLS-1$
.readonly("color") //$NON-NLS-1$
.apply();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public String getText(Object element)
new CellEditorFactory(getNodeViewer(), TaxonomyNode.class) //
.notify(new NodeModificationListener(this)) //
.editable("name") // //$NON-NLS-1$
.readonly("note") //$NON-NLS-1$
.decimal("weight", Values.Weight) // //$NON-NLS-1$
.apply();

Expand Down

0 comments on commit 14ee6eb

Please sign in to comment.