private void initAreaView( String labelResourceKey, ITextualDescription textualDescription, TextualPresentation presentation) { ITextView textView = descriptionView.addAreaView(resources.getString(labelResourceKey), 6); presentation.initView(textView, textualDescription); }
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); }