@Override public String getDescription() throws NotDefinedException { try { return command.getDescription(); } catch (final org.eclipse.core.commands.common.NotDefinedException e) { throw new NotDefinedException(e); } }
@Override public String getDescription() { try { return command.getCommand().getDescription(); } catch (final NotDefinedException e) { return null; } }
/** * Returns a formatted string describes this command. * * @return a description of the command of this element * @since 3.6 */ public String getCommand() { final StringBuilder label = new StringBuilder(); try { Command nestedCommand = command.getCommand(); label.append(command.getName()); if (nestedCommand != null && nestedCommand.getDescription() != null && nestedCommand.getDescription().length() != 0) { label.append(separator).append(nestedCommand.getDescription()); } } catch (NotDefinedException e) { label.append(command.toString()); } return label.toString(); }
if (!cmdName.equals(mCommand.getCommandName())) { mCommand.setCommandName(cmdName); String cmdDesc = cmd.getDescription(); if (cmdDesc != null) mCommand.setDescription(cmdDesc);
try { text = command.getCommand().getName(); tooltip = command.getCommand().getDescription(); if (tooltip == null || tooltip.trim().length() == 0) { tooltip = text;
if (baseCommand.isDefined()) { try { newDescription = baseCommand.getDescription(); } catch (final NotDefinedException e) {
ql.description = pc.getCommand().getDescription();
/** * @param bindingCommand */ private void setCommandInfo(ParameterizedCommand bindingCommand) { setId(bindingCommand.getId()); try { setName(bindingCommand.getName()); } catch (NotDefinedException e) { setName(NewKeysPreferenceMessages.Undefined_Command); } try { setDescription(bindingCommand.getCommand().getDescription()); } catch (NotDefinedException e) { setDescription(Util.ZERO_LENGTH_STRING); } try { setCategory(bindingCommand.getCommand().getCategory().getName()); } catch (NotDefinedException e) { setCategory(NewKeysPreferenceMessages.Unavailable_Category); } setConflict(Boolean.FALSE); }
command.setCategory(categoryModel); command.setCommandName(cmd.getName()); command.setDescription(cmd.getDescription());