Skip to content

Commit

Permalink
TEIIDDES-3044 (cntd)
Browse files Browse the repository at this point in the history
 * added pk/fk decorator on column image when applicable
  • Loading branch information
blafond committed Jun 8, 2017
1 parent 35ec616 commit 60e21e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,15 @@ protected void addAccessPatternsPropertyDescriptorGen( Object object ) { // NO_U
*/
@Override
public Object getImage( Object object ) {
// check the column's reference to a primary key value?
final Column column = (Column)object;

if( column.getUniqueKeys().size() > 0 ) {
return getResourceLocator().getImage("full/obj16/column-is-key"); //$NON-NLS-1$
} else if( column.getForeignKeys().size() > 0 ) {
return getResourceLocator().getImage("full/obj16/column-is-foreign-key"); //$NON-NLS-1$
}

return getResourceLocator().getImage("full/obj16/Column"); //$NON-NLS-1$
}

Expand Down

0 comments on commit 60e21e2

Please sign in to comment.