当前位置: 首页>>代码示例>>Java>>正文


Java ComboBoxPropertyDescriptor类代码示例

本文整理汇总了Java中org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor的典型用法代码示例。如果您正苦于以下问题:Java ComboBoxPropertyDescriptor类的具体用法?Java ComboBoxPropertyDescriptor怎么用?Java ComboBoxPropertyDescriptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ComboBoxPropertyDescriptor类属于org.eclipse.ui.views.properties包,在下文中一共展示了ComboBoxPropertyDescriptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPropertyDescriptors

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
	ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
	properties.add(new TextPropertyDescriptor(TYPE, "Type"));
	if (link.getSource() instanceof ModuleOperationNode) {
		properties.add(new ComboBoxPropertyDescriptor(SINST, "Source Instance Name", getInstances((ModuleTypeNode) link.getSource().getParent())));
	} else {
		properties.add(new TextPropertyDescriptor(SINST, "Source Instance Name"));
	}
	if (link.getTarget() instanceof ModuleOperationNode) {
		properties.add(new ComboBoxPropertyDescriptor(TINST, "Target Instance Name", getInstances((ModuleTypeNode) link.getTarget().getParent())));
	} else {
		properties.add(new TextPropertyDescriptor(TINST, "Target Instance Name"));
	}
	if (link.getSource() instanceof TriggerInstanceTerminalNode || link.getTarget() instanceof TriggerInstanceTerminalNode)
		properties.add(new TextPropertyDescriptor(PERIOD, "Period"));
	return properties.toArray(new IPropertyDescriptor[0]);
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:19,代码来源:LinkPropertySource.java

示例2: getPropertyDescriptors

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
	ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
	if (node instanceof LogicalSystemNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_ID, "System Id"));
	} else if (node instanceof LogicalComputingPlatformNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_ID, "Platform Id"));
	} else if (node instanceof LogicalComputingNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_ID, "Node Id"));
		properties.add(new ComboBoxPropertyDescriptor(NodeConstants.LOG_SYS_NODE_ENDIAN, "Endianess", ENDIAN_OPTS));
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_SYS_OS_NAME, "OS Name"));
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_SYS_OS_VER, "OS Version"));
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_SYS_AVAIL_MEM_GB, "Available Memory (GB)"));
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_SYS_MOD_SWITCH_TIME, "Switch Time (�s)"));
	} else if (node instanceof LogicalProcessorsNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_SYS_PROC_NUM, "Number"));
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_SYS_PROC_TYPE, "Type"));
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_SYS_STEP_DUR, "Step Duration (ns)"));
	}
	return properties.toArray(new IPropertyDescriptor[0]);
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:22,代码来源:NodePropertySource.java

示例3: getPropertyDescriptors

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
	ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
	if (node instanceof CompositeNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.COMPOSITE_NAME, "Composite Name"));
	} else if (node instanceof ComponentNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.COMPONENT_NAME, "Component Name"));
		properties.add(new ComboBoxPropertyDescriptor(NodeConstants.COMPONENT_TYPE, "Component Type", getComponentDefs()));
	} else if (node instanceof ComponentPropertyNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_PROP, "Property Name"));
		properties.add(new ComboBoxPropertyDescriptor(NodeConstants.GENERIC_TYPE, "Type", sdtTypes));
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_VAL, "Property Value"));
	} else if (node instanceof CompositePropertyNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_PROP, "Property Name"));
		properties.add(new ComboBoxPropertyDescriptor(NodeConstants.GENERIC_TYPE, "Type", sdtTypes));
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_VAL, "Property Value"));
	} else if (node instanceof ServiceNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_INTF, "Definition"));
	} else if (node instanceof ReferenceNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_INTF, "Definition"));
	}
	return properties.toArray(new IPropertyDescriptor[0]);
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:26,代码来源:NodePropertySource.java

示例4: getPropertyDescriptors

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {

    ComboBoxPropertyDescriptor variabilityTypeDescriptor = new ComboBoxPropertyDescriptor(
            PROPERTY_ID_VARIABILITYTYPE, "Variability Type", variabilityTypes.toArray(new String[] {}));
    variabilityTypeDescriptor.setCategory(CATEGORY_CHARACTERISTICS);

    ComboBoxPropertyDescriptor bindingTimeDescriptor = new ComboBoxPropertyDescriptor(PROPERTY_ID_BINDINGTIME,
            "Binding Time", bindingTimes.toArray(new String[] {}));
    bindingTimeDescriptor.setCategory(CATEGORY_CHARACTERISTICS);

    ComboBoxPropertyDescriptor extensibilityDescriptor = new ComboBoxPropertyDescriptor(PROPERTY_ID_EXTENSIBILITY,
            "Extensible", extensibilities.toArray(new String[] {}));
    extensibilityDescriptor.setCategory(CATEGORY_CHARACTERISTICS);

    VariabilityMechanismPropertyDescriptor variabilityMechanismDescriptor = new VariabilityMechanismPropertyDescriptor(
            PROPERTY_ID_VARIABILITY_MECHANISM, "Variability Mechanism");
    variabilityMechanismDescriptor.setCategory(CATEGORY_REALIZATION);

    return new IPropertyDescriptor[] { variabilityTypeDescriptor, bindingTimeDescriptor, extensibilityDescriptor,
            variabilityMechanismDescriptor };
}
 
开发者ID:kopl,项目名称:SPLevo,代码行数:23,代码来源:PropertySource.java

示例5: responsibilityDescriptor

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
/**
 * @param descriptors
 * @param attr
 * @param propertyid
 */
private void responsibilityDescriptor(Collection descriptors, EStructuralFeature attr, PropertyID propertyid) {
    if (((RespRef) getEditableValue()).getDiagram() == null || ((RespRef) getEditableValue()).getDiagram().getUrndefinition() == null)
        return;
    URNspec urn = ((RespRef) getEditableValue()).getDiagram().getUrndefinition().getUrnspec();
    Vector list = new Vector(urn.getUrndef().getResponsibilities());
    Collections.sort(list, new EObjectClassNameComparator());
    String[] values = new String[list.size()];
    for (int i = 0; i < list.size(); i++) {

        values[i] = EObjectClassNameComparator.getSortableElementName((Responsibility) list.get(i));
        if (values[i] == null)
            values[i] = "[unnamed]"; //$NON-NLS-1$
    }

    ComboBoxPropertyDescriptor pd = new ComboBoxPropertyDescriptor(propertyid, "definition", values); //$NON-NLS-1$
    pd.setCategory(Messages.getString("EObjectPropertySource.reference")); //$NON-NLS-1$
    descriptors.add(pd);

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:25,代码来源:ResponsibilityPropertySource.java

示例6: kpiInformationElementDescriptor

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
/**
 * @param descriptors
 * @param attr
 * @param propertyid
 */
private void kpiInformationElementDescriptor(Collection descriptors, EStructuralFeature attr, PropertyID propertyid) {
    if (((KPIInformationElementRef) getEditableValue()).getDiagram().getUrndefinition() == null)
        return;
    URNspec urn = ((KPIInformationElementRef) getEditableValue()).getDiagram().getUrndefinition().getUrnspec();
    Vector list = new Vector(urn.getGrlspec().getKpiInformationElements());
    Collections.sort(list, new EObjectClassNameComparator());

    String[] values = new String[list.size()];
    for (int i = 0; i < list.size(); i++) {

        values[i] = EObjectClassNameComparator.getSortableElementName((KPIInformationElement) list.get(i));
        if (values[i] == null)
            values[i] = Messages.getString("KPIInformationElementPropertySource.Unnamed"); //$NON-NLS-1$
    }

    ComboBoxPropertyDescriptor pd = new ComboBoxPropertyDescriptor(propertyid, "definition", values); //$NON-NLS-1$
    pd.setCategory(Messages.getString("EObjectPropertySource.reference")); //$NON-NLS-1$ 
    descriptors.add(pd);

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:26,代码来源:KPIInformationElementPropertySource.java

示例7: componentElementDescriptor

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
/**
 * @param descriptors
 * @param attr
 * @param propertyid
 */
private void componentElementDescriptor(Collection descriptors, EStructuralFeature attr, PropertyID propertyid) {
    if (((IURNContainerRef) getEditableValue()).getDiagram() == null || ((IURNContainerRef) getEditableValue()).getDiagram().getUrndefinition() == null)
        return;
    URNspec urn = ((IURNContainerRef) getEditableValue()).getDiagram().getUrndefinition().getUrnspec();
    Vector list;
    if (getEditableValue() instanceof UCMmodelElement) {
        list = new Vector(urn.getUrndef().getComponents());
    } else {
        list = new Vector(urn.getGrlspec().getActors());
    }
    Collections.sort(list, new EObjectClassNameComparator());

    String[] values = new String[list.size()];
    for (int i = 0; i < list.size(); i++) {

        values[i] = EObjectClassNameComparator.getSortableElementName((IURNContainer) list.get(i));
        if (values[i] == null)
            values[i] = Messages.getString("ContainerPropertySource.unnamed"); //$NON-NLS-1$
    }

    ComboBoxPropertyDescriptor pd = new ComboBoxPropertyDescriptor(propertyid, "definition", values); //$NON-NLS-1$
    pd.setCategory(Messages.getString("ContainerPropertySource.reference")); //$NON-NLS-1$
    descriptors.add(pd);

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:31,代码来源:ContainerPropertySource.java

示例8: intentionalElementDescriptor

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
/**
 * @param descriptors
 * @param attr
 * @param propertyid
 */
private void intentionalElementDescriptor(Collection descriptors, EStructuralFeature attr, PropertyID propertyid) {
    if (getEditableValue() == null || ((IntentionalElementRef) getEditableValue()).getDiagram() == null
            || ((IntentionalElementRef) getEditableValue()).getDiagram().getUrndefinition() == null)
        return;
    URNspec urn = ((IntentionalElementRef) getEditableValue()).getDiagram().getUrndefinition().getUrnspec();
    Vector list = new Vector(urn.getGrlspec().getIntElements());
    Collections.sort(list, new EObjectClassNameComparator());

    String[] values = new String[list.size()];
    for (int i = 0; i < list.size(); i++) {

        values[i] = EObjectClassNameComparator.getSortableElementName((IntentionalElement) list.get(i));
        if (values[i] == null)
            values[i] = Messages.getString("IntentionalElementPropertySource.Unnamed"); //$NON-NLS-1$
    }

    ComboBoxPropertyDescriptor pd = new ComboBoxPropertyDescriptor(propertyid, "definition", values); //$NON-NLS-1$
    pd.setCategory(Messages.getString("EObjectPropertySource.reference")); //$NON-NLS-1$ 
    descriptors.add(pd);

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:27,代码来源:IntentionalElementPropertySource.java

示例9: kpiConversionDescriptor

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
/**
 * Creates a drop down list for strategy groups.
 * 
 * @param descriptors
 * @param propertyid
 */
private void kpiConversionDescriptor(Collection descriptors, PropertyID propertyid) {
    Vector list = getKPIConversionList();

    String[] values = new String[list.size() + 1];
    values[0] = "(undefined)";
    for (int i = 0; i < list.size(); i++) {

        values[i + 1] = EObjectClassNameComparator.getSortableElementName((KPIConversion) list.get(i));
        if (values[i + 1] == null)
            values[i + 1] = Messages.getString("URNElementPropertySource.unnamed"); //$NON-NLS-1$
    }

    ComboBoxPropertyDescriptor pd = new ComboBoxPropertyDescriptor(propertyid, "KPI Conversion", values);
    pd.setCategory("KPI Model Strategy");
    descriptors.add(pd);
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:23,代码来源:IntentionalElementPropertySource.java

示例10: scenarioGroupDescriptor

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
/**
 * Creates a drop down list for scenario groups.
 * 
 * @param descriptors
 * @param propertyid
 */
private void scenarioGroupDescriptor(Collection descriptors, PropertyID propertyid) {
    if (((ScenarioDef) getEditableValue()).getGroup() == null || ((ScenarioDef) getEditableValue()).getGroup().getUcmspec() == null)
        return;
    URNspec urn = ((ScenarioDef) getEditableValue()).getGroup().getUcmspec().getUrnspec();
    Vector list;
    list = new Vector(urn.getUcmspec().getScenarioGroups());
    Collections.sort(list, new EObjectClassNameComparator());

    String[] values = new String[list.size()];
    for (int i = 0; i < list.size(); i++) {

        values[i] = EObjectClassNameComparator.getSortableElementName((ScenarioGroup) list.get(i));
        if (values[i] == null)
            values[i] = Messages.getString("URNElementPropertySource.unnamed"); //$NON-NLS-1$
    }

    ComboBoxPropertyDescriptor pd = new ComboBoxPropertyDescriptor(propertyid, "group", values); //$NON-NLS-1$
    pd.setCategory(Messages.getString("URNElementPropertySource.ScenarioStrategy")); //$NON-NLS-1$
    descriptors.add(pd);

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:28,代码来源:URNElementPropertySource.java

示例11: strategyGroupDescriptor

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
/**
 * Creates a drop down list for strategy groups.
 * 
 * @param descriptors
 * @param propertyid
 */
private void strategyGroupDescriptor(Collection descriptors, PropertyID propertyid) {
    if (((EvaluationStrategy) getEditableValue()).getGroup() == null || ((EvaluationStrategy) getEditableValue()).getGroup().getGrlspec() == null)
        return;
    URNspec urn = ((EvaluationStrategy) getEditableValue()).getGroup().getGrlspec().getUrnspec();
    Vector list;
    list = new Vector(urn.getGrlspec().getGroups());
    Collections.sort(list, new EObjectClassNameComparator());

    String[] values = new String[list.size()];
    for (int i = 0; i < list.size(); i++) {

        values[i] = EObjectClassNameComparator.getSortableElementName((StrategiesGroup) list.get(i));
        if (values[i] == null)
            values[i] = Messages.getString("URNElementPropertySource.unnamed"); //$NON-NLS-1$
    }

    ComboBoxPropertyDescriptor pd = new ComboBoxPropertyDescriptor(propertyid, "group", values); //$NON-NLS-1$
    pd.setCategory(Messages.getString("URNElementPropertySource.ScenarioStrategy")); //$NON-NLS-1$
    descriptors.add(pd);
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:27,代码来源:URNElementPropertySource.java

示例12: contributionContextGroupDescriptor

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
/**
 * Creates a drop down list for contribution context groups.
 * 
 * @param descriptors
 * @param propertyid
 */
private void contributionContextGroupDescriptor(Collection descriptors, PropertyID propertyid) {
    if (((ContributionContext) getEditableValue()).getGroups().size() == 0
            || ((ContributionContextGroup) ((ContributionContext) getEditableValue()).getGroups().get(0)).getGrlspec() == null)
        return;
    URNspec urn = ((ContributionContextGroup) ((ContributionContext) getEditableValue()).getGroups().get(0)).getGrlspec().getUrnspec();
    Vector list;
    list = new Vector(urn.getGrlspec().getContributionGroups());
    Collections.sort(list, new EObjectClassNameComparator());

    String[] values = new String[list.size()];
    for (int i = 0; i < list.size(); i++) {

        values[i] = EObjectClassNameComparator.getSortableElementName((ContributionContextGroup) list.get(i));
        if (values[i] == null)
            values[i] = Messages.getString("URNElementPropertySource.unnamed"); //$NON-NLS-1$
    }

    ComboBoxPropertyDescriptor pd = new ComboBoxPropertyDescriptor(propertyid, "group", values); //$NON-NLS-1$
    pd.setCategory(Messages.getString("URNElementPropertySource.ScenarioStrategy")); //$NON-NLS-1$
    descriptors.add(pd);

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:29,代码来源:URNElementPropertySource.java

示例13: loadDescriptors

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
@Override
protected IPropertyDescriptor[] loadDescriptors() {
	IPropertyDescriptor[] propertyDescriptors = new IPropertyDescriptor[3];
	propertyDescriptors[0] = new TextPropertyDescriptor("tagname", "Column tag name");
	((PropertyDescriptor)propertyDescriptors[0]).setCategory("Configuration");
	propertyDescriptors[1] = new TextPropertyDescriptor("colxpath", "Column XPath");
	((PropertyDescriptor)propertyDescriptors[1]).setCategory("Selection");
	propertyDescriptors[2] = new ComboBoxPropertyDescriptor("extract", "Extract children", new String[]{"false","true"});
	((PropertyDescriptor)propertyDescriptors[2]).setCategory("Selection");
	return propertyDescriptors;
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:12,代码来源:XMLTableDescriptionColumnTreeObject.java

示例14: loadDescriptors

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
@Override
protected IPropertyDescriptor[] loadDescriptors() {
	IPropertyDescriptor[] propertyDescriptors = new IPropertyDescriptor[3];
	propertyDescriptors[0] = new TextPropertyDescriptor("name", "Data tag name");
	((PropertyDescriptor)propertyDescriptors[0]).setCategory("Configuration");
	propertyDescriptors[1] = new TextPropertyDescriptor("xpath", "Data XPath");
	((PropertyDescriptor)propertyDescriptors[1]).setCategory("Selection");
	propertyDescriptors[2] = new ComboBoxPropertyDescriptor("extract", "Extract children", new String[]{"false","true"});
	((PropertyDescriptor)propertyDescriptors[2]).setCategory("Selection");
	return propertyDescriptors;
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:12,代码来源:XMLRecordDescriptionRowTreeObject.java

示例15: getPropertyDescriptors

import org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor; //导入依赖的package包/类
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
	ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
	if (node instanceof DeploymentNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.DEP_LOG_SYS, "Logical System"));
		properties.add(new TextPropertyDescriptor(NodeConstants.DEP_FINAL_ASSMBL, "Final Assembly"));
	} else if (node instanceof ProtectionDomainNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
		properties.add(new ComboBoxPropertyDescriptor(NodeConstants.EXEC_ON_COMP_NODE, "Execution Computing Node", getCNNames()));
		properties.add(new ComboBoxPropertyDescriptor(NodeConstants.GENERIC_COMP_PLAT, "Execution Platform", getPCNames()));
	} else if (node instanceof ComputingNodeConfigurationNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Computing Node"));
		properties.add(new TextPropertyDescriptor(NodeConstants.COMP_NODE_SCHED_INFO, "Scheduling Information"));
	} else if (node instanceof PlatformConfigurationNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_COMP_PLAT, "Platform"));
		properties.add(new TextPropertyDescriptor(NodeConstants.PLAT_CONF_NOTIF_MAX, "Max Notifications"));
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_PLAT_MCAST_ADDR, "Multicast Address"));
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_PLAT_PORT, "Port"));
		properties.add(new TextPropertyDescriptor(NodeConstants.LOG_PLAT_ID, "Platform Id"));
	} else if (node instanceof DeployedModuleInstanceNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_COMP_NAME, "Component Instance"));
		properties.add(new TextPropertyDescriptor(NodeConstants.DEP_MOD_INST_NAME, "Module Instance"));
		properties.add(new TextPropertyDescriptor(NodeConstants.DEP_MOD_PRIORITY, "Priority"));
		properties.add(new ComboBoxPropertyDescriptor(NodeConstants.PD_NAME, "Protection Domain", getPDNames()));
	} else if (node instanceof DeployedTriggerInstanceNode) {
		properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_COMP_NAME, "Component Instance"));
		properties.add(new TextPropertyDescriptor(NodeConstants.DEP_TRG_INST_NAME, "Trigger Instance"));
		properties.add(new TextPropertyDescriptor(NodeConstants.DEP_TRG_PRIORITY, "Priority"));
		properties.add(new ComboBoxPropertyDescriptor(NodeConstants.PD_NAME, "Protection Domain", getPDNames()));
	}
	return properties.toArray(new IPropertyDescriptor[0]);
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:33,代码来源:NodePropertySource.java


注:本文中的org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。