| | |
| | | private static final String FIELD_YES = |
| | | Messages.getString("general.yes"); //$NON-NLS-1$ |
| | | |
| | | private final static String HEADING_ADVANCED = Messages |
| | | .getString(KEY_PREFIX + "heading.advanced"); //$NON-NLS-1$ |
| | | |
| | | private final static String HEADING_DEFAULT = Messages.getString(KEY_PREFIX |
| | | + "heading.default"); //$NON-NLS-1$ |
| | | |
| | |
| | | this.subCommand.addArgument(this.typeArgument); |
| | | |
| | | // Register common arguments. |
| | | registerAdvancedModeArgument(this.subCommand, |
| | | MSGID_DSCFG_DESCRIPTION_ADVANCED_HELP); |
| | | registerPropertyNameArgument(this.subCommand); |
| | | |
| | | this.types = new TreeMap<String, AbstractManagedObjectDefinition<?, ?>>(); |
| | |
| | | |
| | | // Display options. |
| | | builder.startRow(); |
| | | builder.appendCell(HEADING_ADVANCED); |
| | | builder.appendCell(HEADING_SEPARATOR); |
| | | if (pd.hasOption(PropertyOption.ADVANCED)) { |
| | | builder.appendCell(FIELD_YES); |
| | | } else { |
| | | builder.appendCell(FIELD_NO); |
| | | } |
| | | |
| | | builder.startRow(); |
| | | builder.appendCell(HEADING_MULTI_VALUED); |
| | | builder.appendCell(HEADING_SEPARATOR); |
| | | if (pd.hasOption(PropertyOption.MULTI_VALUED)) { |
| | |
| | | continue; |
| | | } |
| | | |
| | | if (!isAdvancedMode() && pd.hasOption(PropertyOption.ADVANCED)) { |
| | | continue; |
| | | } |
| | | |
| | | if (!propertyNames.isEmpty() && !propertyNames.contains(pd.getName())) { |
| | | continue; |
| | | } |
| | |
| | | continue; |
| | | } |
| | | |
| | | if (!isAdvancedMode() && pd.hasOption(PropertyOption.ADVANCED)) { |
| | | continue; |
| | | } |
| | | |
| | | if (!propertyNames.isEmpty() && !propertyNames.contains(pd.getName())) { |
| | | continue; |
| | | } |