本文整理汇总了Java中org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor.setDescription方法的典型用法代码示例。如果您正苦于以下问题:Java ComboBoxPropertyDescriptor.setDescription方法的具体用法?Java ComboBoxPropertyDescriptor.setDescription怎么用?Java ComboBoxPropertyDescriptor.setDescription使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor
的用法示例。
在下文中一共展示了ComboBoxPropertyDescriptor.setDescription方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createPropertyDescriptors
import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入方法依赖的package包/类
/**
* Creates the property descriptors.
*
* @param desc
* the desc
*/
@Override
public void createPropertyDescriptors(List<IPropertyDescriptor> desc, Map<String, Object> defaultsMap) {
super.createPropertyDescriptors(desc, defaultsMap);
ComboBoxPropertyDescriptor fillD = new ComboBoxPropertyDescriptor(JRBaseStyle.PROPERTY_FILL, Messages.common_fill,
EnumHelper.getEnumNames(FillEnum.values(), NullEnum.INHERITED));
fillD.setDescription(Messages.MEllipse_fill_description);
desc.add(fillD);
setHelpPrefix(desc, "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#graphicElement");
}
示例2: createPropertyDescriptors
import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入方法依赖的package包/类
/**
* Creates the property descriptors.
*
* @param desc
* the desc
*/
@Override
public void createPropertyDescriptors(List<IPropertyDescriptor> desc,
Map<String, Object> defaultsMap) {
super.createPropertyDescriptors(desc, defaultsMap);
ComboBoxPropertyDescriptor evaluationTimeD = new ComboBoxPropertyDescriptor(
SortComponent.PROPERTY_EVALUATION_TIME,
Messages.common_evaluation_time, EnumHelper.getEnumNames(
EvaluationTimeEnum.values(), NullEnum.NOTNULL));
evaluationTimeD
.setDescription(Messages.MGenericElement_evaluation_time_description);
desc.add(evaluationTimeD);
evaluationGroupNameD = new RComboBoxPropertyDescriptor(
SortComponent.PROPERTY_EVALUATION_GROUP,
Messages.MGenericElement_evaluation_group_name,
new String[] { "" }); //$NON-NLS-2$
evaluationGroupNameD
.setDescription(Messages.MGenericElement_evaluation_group_name_description);
desc.add(evaluationGroupNameD);
ColorPropertyDescriptor color = new ColorPropertyDescriptor(
SortComponent.PROPERTY_HANDLER_COLOR, "Handler Color",
NullEnum.NULL);
color.setDescription("Handler color");
desc.add(color);
ComboBoxPropertyDescriptor horizAlign = new ComboBoxPropertyDescriptor(
SortComponent.PROPERTY_HANDLER_HORIZONTAL_ALIGN,
"Handler Horizontal Alignement", EnumHelper.getEnumNames(
HorizontalAlignEnum.values(), NullEnum.NOTNULL));
horizAlign.setDescription("Handler horizontal alignement");
desc.add(horizAlign);
ComboBoxPropertyDescriptor vertAlign = new ComboBoxPropertyDescriptor(
SortComponent.PROPERTY_HANDLER_VERTICAL_ALIGN,
"Handler Vertical Alignement", EnumHelper.getEnumNames(
VerticalAlignEnum.values(), NullEnum.NOTNULL));
vertAlign.setDescription("Handler vertical alignement");
desc.add(vertAlign);
ComboBoxPropertyDescriptor sortFieldType = new ComboBoxPropertyDescriptor(
SortComponent.PROPERTY_COLUMN_TYPE, "SortField Type",
EnumHelper.getEnumNames(SortFieldTypeEnum.values(),
NullEnum.NOTNULL));
sortFieldType.setDescription("SortField type");
desc.add(sortFieldType);
NTextPropertyDescriptor sortFieldName = new NTextPropertyDescriptor(
SortComponent.PROPERTY_COLUMN_NAME, "SortField Name");
sortFieldName.setDescription("SortField name");
desc.add(sortFieldName);
color.setCategory("Sort Properties");
sortFieldType.setCategory("Sort Properties");
sortFieldName.setCategory("Sort Properties");
horizAlign.setCategory("Sort Properties");
vertAlign.setCategory("Sort Properties");
evaluationTimeD.setCategory("Sort Properties");
evaluationGroupNameD.setCategory("Sort Properties");
defaultsMap.put(SortComponent.PROPERTY_HANDLER_VERTICAL_ALIGN,
VerticalAlignEnum.MIDDLE);
defaultsMap.put(SortComponent.PROPERTY_HANDLER_HORIZONTAL_ALIGN,
HorizontalAlignEnum.LEFT);
defaultsMap.put(SortComponent.PROPERTY_EVALUATION_TIME,
EvaluationTimeEnum.NOW);
defaultsMap.put(SortComponent.PROPERTY_HANDLER_COLOR, null);
defaultsMap.put(SortComponent.PROPERTY_COLUMN_TYPE,
SortFieldTypeEnum.FIELD);
}