Skip to content

Commit

Permalink
MID-2189 - issue 3 improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Suta committed Jan 30, 2015
1 parent 3b74867 commit 1eeba6b
Showing 1 changed file with 13 additions and 3 deletions.
Expand Up @@ -188,11 +188,21 @@ protected IModel<String> createTextModel(final IModel<SynchronizationActionType>
public String getObject() {
SynchronizationActionType action = model.getObject();

if(action != null){
return action.getName() != null ? action.getName() : " - ";
} else {
if(action == null){
return null;
}

StringBuilder sb = new StringBuilder();
sb.append(action.getName() != null ? action.getName() : " - ");

if(action.getHandlerUri() != null){
String[] handlerUriSplit = action.getHandlerUri().split("#");
sb.append("(");
sb.append(handlerUriSplit[handlerUriSplit.length - 1]);
sb.append(")");
}

return sb.toString();
}
};
}
Expand Down

0 comments on commit 1eeba6b

Please sign in to comment.