private void initMinorTraits(TextualPresentation presentation) { IMultiComponentLine componentLine = descriptionView.addMultiComponentLine(); addField(componentLine, "CharacterDescription.Label.Sex", description.getSex(), presentation); addField(componentLine, "CharacterDescription.Label.Hair", description.getHair(), presentation); addField(componentLine, "CharacterDescription.Label.Skin", description.getSkin(), presentation); addField(componentLine, "CharacterDescription.Label.Eyes", description.getEyes(), presentation); addInteger(componentLine, "Label.Age", characterConcept.getAge()); }
private void initNameLineView(int row, TextualPresentation presentation) { initLineView( "CharacterDescription.Label.Name", description.getName(), presentation); // $NON-NLS-1$ CharacterUI characterUI = new CharacterUI(resources); descriptionView.addEditAction( new NameGeneratorAction( characterUI.getRandomRealmNameIcon(), resources.getString("CharacterDescription.Tooltip.RealmName"), // $NON-NLS-1$ description.getName(), new RealmNameGenerator()), row); descriptionView.addEditAction( new NameGeneratorAction( characterUI.getRandomThresholdNameIcon(), resources.getString("CharacterDescription.Tooltip.ThresholdName"), //$NON-NLS-1$ description.getName(), new ThresholdNameGenerator()), row); }
@Override public void initPresentation() { TextualPresentation presentation = new TextualPresentation(); initNameLineView(0, presentation); initLineView( "CharacterDescription.Label.Player", description.getPlayer(), presentation); // $NON-NLS-1$ initLineView("Label.Concept", description.getConcept(), presentation); // $NON-NLS-1$ initAreaView( "CharacterDescription.Label.Characterization", description.getCharacterization(), presentation); //$NON-NLS-1$ initAreaView( "CharacterDescription.Label.PhysicalDescription", description.getPhysicalDescription(), presentation); //$NON-NLS-1$ initMinorTraits(presentation); if (hasAnima) { initLineView( "CharacterDescription.Label.Anima", description.getAnima(), presentation); // $NON-NLS-1$ } initAreaView( "CharacterDescription.Label.Notes", description.getNotes(), presentation); // $NON-NLS-1$ }