@Override
 public void run() {
   messagesViewer.setShowFileNameOnly(isChecked());
 }
 public ShowFileNameOnlyAction(MessagesViewer messagesViewer) {
   super(ActionsMessages.ShowFileNameOnlyAction_text, AS_CHECK_BOX);
   this.messagesViewer = messagesViewer;
   setToolTipText(ActionsMessages.ShowFileNameOnlyAction_tooltip);
   setChecked(messagesViewer.getShowFileNameOnly());
 }