Java 类org.eclipse.ui.views.properties.TextPropertyDescriptor 实例源码
项目:Open_Source_ECOA_Toolset_AS5
文件:LinkPropertySource.java
@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]);
}
项目:Open_Source_ECOA_Toolset_AS5
文件:NodePropertySource.java
@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]);
}
项目:Open_Source_ECOA_Toolset_AS5
文件:NodePropertySource.java
@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]);
}
项目:ForgedUI-Eclipse
文件:TabGroup.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
List<IPropertyDescriptor> fullList = new ArrayList<IPropertyDescriptor>();
fullList.addAll(Arrays.asList(super.getPropertyDescriptors()));
TextPropertyDescriptor tpd = new TextPropertyDescriptor(PRP_TAB_NUM, PRP_TAB_NUM);
tpd.setValidator(new ICellEditorValidator() {
@Override
public String isValid(Object value) {
int intValue = -1;
try {
intValue = Integer.parseInt((String) value);
} catch (NumberFormatException exc) {
return "Not a number";
}
return (intValue >= 2) ? null : "Value must be >= 2";
}
});
fullList.add(tpd);
return fullList.toArray(new IPropertyDescriptor[fullList.size()]);
}
项目:mondo-demo-wt
文件:WTItemPropertiesSource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
// TODO Auto-generated method stub
TextPropertyDescriptor attr_sysId = new TextPropertyDescriptor("sysId", "sysId");
attr_sysId.setCategory("Attributes");
TextPropertyDescriptor attr_model = new TextPropertyDescriptor("model", "model");
attr_model.setCategory("Attributes");
TextPropertyDescriptor attr_version = new TextPropertyDescriptor("version", "version");
attr_version.setCategory("Attributes");
return new IPropertyDescriptor[]{
attr_sysId
,
attr_model
,
attr_version
};
}
项目:seg.jUCMNav
文件:IndicatorPropertySource.java
/**
* @param descriptors
* @param attr
* @param propertyid
*/
private void evaluationDescriptor(Collection descriptors, EStructuralFeature attr, PropertyID propertyid) {
if (attr.getName() == "evaluation") { //$NON-NLS-1$
TextPropertyDescriptor pd = new TextPropertyDescriptor(propertyid, "evaluationLevel (100 to -100)"); //$NON-NLS-1$
((PropertyDescriptor) pd).setValidator(new ICellEditorValidator() {
public String isValid(Object value) {
int intValue = -1;
try {
intValue = Integer.parseInt((String) value);
return null;
} catch (NumberFormatException exc) {
return "Not Number"; //$NON-NLS-1$
}
}
});
pd.setCategory("Strategy"); //$NON-NLS-1$
descriptors.add(pd);
}
}
项目:seg.jUCMNav
文件:EObjectPropertySource.java
/**
* int property descriptor
*
* @param descriptors
* @param attr
* @param propertyid
*/
protected void intDescriptor(Collection descriptors, EStructuralFeature attr, PropertyID propertyid) {
TextPropertyDescriptor desc = new TextPropertyDescriptor(propertyid, attr.getName());
((PropertyDescriptor) desc).setValidator(new ICellEditorValidator() {
public String isValid(Object value) {
int intValue = -1;
try {
intValue = Integer.parseInt((String) value);
return null;
} catch (NumberFormatException exc) {
return Messages.getString("EObjectPropertySource.notNumber"); //$NON-NLS-1$
}
}
});
String name = attr.getName().toLowerCase();
if (name.equals("x") || name.equals("y") || name.equals("deltax") || name.equals("deltay") || name.equals("height") || name.equals("width")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
desc.setCategory(Messages.getString("EObjectPropertySource.appearance")); //$NON-NLS-1$
} else if (object.eClass() != propertyid.getEClass()) {
desc.setCategory(Messages.getString("EObjectPropertySource.reference")); //$NON-NLS-1$
} else {
desc.setCategory(Messages.getString("EObjectPropertySource.misc")); //$NON-NLS-1$
}
descriptors.add(desc);
}
项目:seg.jUCMNav
文件:EObjectPropertySource.java
/**
* int property descriptor
*
* @param descriptors
* @param attr
* @param propertyid
*/
protected void doubleDescriptor(Collection descriptors, EStructuralFeature attr, PropertyID propertyid) {
TextPropertyDescriptor desc = new TextPropertyDescriptor(propertyid, attr.getName());
((PropertyDescriptor) desc).setValidator(new ICellEditorValidator() {
public String isValid(Object value) {
double doubleValue = -1;
try {
doubleValue = Double.parseDouble(value.toString());
return null;
} catch (NumberFormatException exc) {
return Messages.getString("EObjectPropertySource.notValidNumber"); //$NON-NLS-1$
}
}
});
desc.setCategory(Messages.getString("EObjectPropertySource.misc")); //$NON-NLS-1$
descriptors.add(desc);
}
项目:convertigo-eclipse
文件:XMLTableDescriptionColumnTreeObject.java
@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;
}
项目:convertigo-eclipse
文件:XMLRecordDescriptionRowTreeObject.java
@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;
}
项目:convertigo-eclipse
文件:XMLTableDescriptionRowTreeObject.java
@Override
protected IPropertyDescriptor[] loadDescriptors() {
IPropertyDescriptor[] propertyDescriptors = new IPropertyDescriptor[2];
propertyDescriptors[0] = new TextPropertyDescriptor("tagname", "Row tag name");
((PropertyDescriptor)propertyDescriptors[0]).setCategory("Configuration");
propertyDescriptors[1] = new TextPropertyDescriptor("rowxpath", "Row XPath");
((PropertyDescriptor)propertyDescriptors[1]).setCategory("Selection");
return propertyDescriptors;
}
项目:Open_Source_ECOA_Toolset_AS5
文件:NodePropertySource.java
@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]);
}
项目:Open_Source_ECOA_Toolset_AS5
文件:NodePropertySource.java
@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 TextPropertyDescriptor(NodeConstants.COMPONENT_TYPE, "Component Type"));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.COMPONENT_INST, "Implementation", getComponentImpl()));
} 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 ServiceNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_INTF, "Interface"));
} else if (node instanceof ReferenceNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_INTF, "Interface"));
}
return properties.toArray(new IPropertyDescriptor[0]);
}
项目:xstreamer
文件:PilotPropertySource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
return new IPropertyDescriptor[] {
new TextPropertyDescriptor("skill", "Skill"),
new TextPropertyDescriptor("id", "Unique ID"),
new TextPropertyDescriptor("hull", "Hull"),
new TextPropertyDescriptor("shields", "Shields"),
new CheckboxPropertyDescriptor("critical", "Critical Damage")
};
}
项目:ermaster-k
文件:ERTablePropertySource.java
public IPropertyDescriptor[] getPropertyDescriptors() {
return new IPropertyDescriptor[] {
new TextPropertyDescriptor("physicalName",
ResourceString.getResourceString("label.physical.name")),
new TextPropertyDescriptor("logicalName",
ResourceString.getResourceString("label.logical.name")) };
}
项目:ForgedUI-Eclipse
文件:ElementImpl.java
/**
* Children should override this. The default implementation returns an
* empty array.
*/
public IPropertyDescriptor[] getPropertyDescriptors() {
IPropertyDescriptor[] descr = new IPropertyDescriptor[descriptors.length + 1];
System.arraycopy(descriptors, 0, descr, 0, descriptors.length);
TextPropertyDescriptor nameDescr = new TextPropertyDescriptor(
PROPERTY_NAME, "Name");
nameDescr.setValidator(getDiagram().getUniqueNameValidator(this));
descr[descriptors.length] = nameDescr;
return descr;
}
项目:ForgedUI-Eclipse
文件:SplitWindow.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
List<IPropertyDescriptor> props = new ArrayList<IPropertyDescriptor>();
TextPropertyDescriptor masterPropDes = new TextPropertyDescriptor(PROPERTY_MASTER_VIEW, PROPERTY_MASTER_VIEW);
masterPropDes.setValidator(getDiagram().getUniqueNameValidator(this));
props.add(masterPropDes);
TextPropertyDescriptor detailPropDes = new TextPropertyDescriptor(PROPERTY_DETAIL_VIEW, PROPERTY_DETAIL_VIEW);
detailPropDes.setValidator(getDiagram().getUniqueNameValidator(this));
props.add(detailPropDes);
props.add(new BooleanPropertyDescriptor(PROPERTY_SHOW_MASTER_IN_PORTRAIT, PROPERTY_SHOW_MASTER_IN_PORTRAIT,true));
return props.toArray(new IPropertyDescriptor[props.size()]);
}
项目:ForgedUI-Eclipse
文件:AlertDialog.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
List<IPropertyDescriptor> props = new ArrayList<IPropertyDescriptor>();
TextPropertyDescriptor nameDescr = new TextPropertyDescriptor(PROPERTY_NAME, PROPERTY_NAME);
nameDescr.setValidator(getDiagram().getUniqueNameValidator(this));
props.add(nameDescr);
props.add(new TextPropertyDescriptor(TITLE_PROP, TITLE_PROP));
props.add(new TextPropertyDescriptor(TITLE_ID_PROP, TITLE_ID_PROP));
props.add(new TextPropertyDescriptor(OK_PROP, OK_PROP));
if (!getPlatform().isAndroid()) {
props.add(new TextPropertyDescriptor(OK_ID_PROP, OK_ID_PROP));
}
props.add(new TextPropertyDescriptor(MESSAGE_PROP, MESSAGE_PROP));
props.add(new TextPropertyDescriptor(MESSAGE_ID_PROP, MESSAGE_ID_PROP));
NumberPropertyDescriptor npd = new NumberPropertyDescriptor(PROPERTY_CHILDREN, "optionsCount",
NumberCellEditor.INTEGER, true);
// set Maximum number of buttons to 3 under Android platform
int maxValue = Platform.Android.equals(getPlatform()) ? 3 : 30;
npd.setValidator(new MinmaxValidator(1, maxValue));
props.add(npd);
npd = new NumberPropertyDescriptor(CANCEL_PROP, CANCEL_PROP, NumberCellEditor.INTEGER, true);
npd.setValidator(new MinmaxValidator(0, MinmaxValidator.MIN_ONLY));
props.add(npd);
return props.toArray(new IPropertyDescriptor[props.size()]);
}
项目:ForgedUI-Eclipse
文件:OptionDialog.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
List<IPropertyDescriptor> props = new ArrayList<IPropertyDescriptor>();
TextPropertyDescriptor nameDescr = new TextPropertyDescriptor(
PROPERTY_NAME, PROPERTY_NAME);
nameDescr.setValidator(getDiagram().getUniqueNameValidator(this));
props.add(nameDescr);
props.add(new TextPropertyDescriptor(TITLE_PROP, TITLE_PROP));
props.add(new TextPropertyDescriptor(TITLE_ID_PROP, TITLE_ID_PROP));
NumberPropertyDescriptor npd = new NumberPropertyDescriptor(PROPERTY_CHILDREN,
"buttonsCount", NumberCellEditor.INTEGER, false);
npd.setValidator(new MinmaxValidator(2, 30));
props.add(npd);
npd = new NumberPropertyDescriptor(CANCEL_PROP,
CANCEL_PROP, NumberCellEditor.INTEGER, true);
npd.setValidator(new MinmaxValidator(0, MinmaxValidator.MIN_ONLY));
props.add(npd);
npd = new NumberPropertyDescriptor(DESTRUCTIVE_PROP,
DESTRUCTIVE_PROP, NumberCellEditor.INTEGER, true);
npd.setValidator(new MinmaxValidator(0, MinmaxValidator.MIN_ONLY));
props.add(npd);
if (getPlatform().isAndroid()){
npd = new NumberPropertyDescriptor(SELECTED_PROP,
SELECTED_PROP, NumberCellEditor.INTEGER, true);
npd.setValidator(new MinmaxValidator(0, MinmaxValidator.MIN_ONLY));
props.add(npd);
}
return props.toArray(new IPropertyDescriptor[props.size()]);
}
项目:ForgedUI-Eclipse
文件:TitaniumUIBaseElement.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
List<IPropertyDescriptor> fullList = new ArrayList<IPropertyDescriptor>();
fullList.addAll(Arrays.asList(getPropertyDescriptorsForElement()));
TextPropertyDescriptor nameDescr = new TextPropertyDescriptor(PROPERTY_NAME, "name");
nameDescr.setValidator(getDiagram().getUniqueNameValidator(this));
fullList.add(nameDescr);
// now get all descriptors for all the properties that we have ...
// Note : To do : We need some advanced collapsible editor
return fullList.toArray(new IPropertyDescriptor[fullList.size()]);
}
项目:ForgedUI-Eclipse
文件:PopoverDialog.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
List<IPropertyDescriptor> props = new ArrayList<IPropertyDescriptor>(
Arrays.asList(super.getPropertyDescriptors()));
props.add(new TextPropertyDescriptor(TITLE_ID_PROP, TITLE_ID_PROP));
props.add(new TextPropertyDescriptor(TITLE_PROP, TITLE_PROP));
//props.add(new ComboBoxPropertyDescriptor(POPOVER_PROP, POPOVER_PROP,
// getOptionButtons()));
return props.toArray(new IPropertyDescriptor[props.size()]);
}
项目:eclipse-docker-plugin
文件:ContainerPropertySource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
return new IPropertyDescriptor[] { new TextPropertyDescriptor("id", "Id"),
new TextPropertyDescriptor("image", "Image"), new TextPropertyDescriptor("command", "Command"),
new TextPropertyDescriptor("volumes", "Volumes"), new TextPropertyDescriptor("created", "Created"),
new TextPropertyDescriptor("status", "Status"), new TextPropertyDescriptor("driver", "Driver"),
new TextPropertyDescriptor("ipaddress", "IP Address"), new TextPropertyDescriptor("ports", "Ports")};
}
项目:mondo-demo-wt
文件:CollectionInputOutputItemPropertiesSource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
// TODO Auto-generated method stub
TextPropertyDescriptor attr_sysId = new TextPropertyDescriptor("sysId", "sysId");
attr_sysId.setCategory("Attributes");
return new IPropertyDescriptor[]{
attr_sysId
};
}
项目:mondo-demo-wt
文件:MainSubsystemItemPropertiesSource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
// TODO Auto-generated method stub
TextPropertyDescriptor attr_sysId = new TextPropertyDescriptor("sysId", "sysId");
attr_sysId.setCategory("Attributes");
TextPropertyDescriptor attr_description = new TextPropertyDescriptor("description", "description");
attr_description.setCategory("Attributes");
return new IPropertyDescriptor[]{
attr_sysId
,
attr_description
};
}
项目:limpet
文件:PropertyTypeHandler.java
protected PropertyDescriptor doCreatePropertyDescriptor(String propertyId,
UIProperty metadata)
{
// TODO: ideally this would be a drop down list, where user can select
// values.
// In that case toModel and toUI would need to deal with indices
return new TextPropertyDescriptor(propertyId, metadata.name());
}
项目:ermaster-nhit
文件:ERTablePropertySource.java
public IPropertyDescriptor[] getPropertyDescriptors() {
return new IPropertyDescriptor[] {
new TextPropertyDescriptor("physicalName",
ResourceString.getResourceString("label.physical.name")),
new TextPropertyDescriptor("logicalName",
ResourceString.getResourceString("label.logical.name")) };
}
项目:xeda
文件:MessageRoute.java
public IPropertyDescriptor[] getPropertyDescriptors() {
IPropertyDescriptor[] descriptors;
descriptors = new IPropertyDescriptor[] {
new TextPropertyDescriptor(PROP_ROUTE_ID, PROP_ROUTE_ID),
new ComboBoxPropertyDescriptor(PROP_STYLE, PROP_STYLE, RouteStyle.getNames()),
};
return descriptors;
}
项目:xeda
文件:MessageType.java
public IPropertyDescriptor[] getPropertyDescriptors() {
IPropertyDescriptor[] descriptors;
descriptors = new IPropertyDescriptor[] {
new TextPropertyDescriptor(PROP_ID, PROP_ID),
new TextPropertyDescriptor(PROP_DESRIPTION, PROP_DESRIPTION),
};
return descriptors;
}
项目:xeda
文件:XedaDiagram.java
public IPropertyDescriptor[] getPropertyDescriptors() {
IPropertyDescriptor[] descriptors;
descriptors = new IPropertyDescriptor[] {
new TextPropertyDescriptor(PROP_ID, PROP_ID),
new TextPropertyDescriptor(PROP_DESRIPTION, PROP_DESRIPTION),
};
return descriptors;
}
项目:xeda
文件:AdditionalProperties.java
public IPropertyDescriptor[] getPropertyDescriptors() {
List<IPropertyDescriptor> descciptors = new ArrayList<IPropertyDescriptor>();
for(String name: properties.keySet()){
PropertyDescriptor descriptor = new TextPropertyDescriptor(new PropertyId(name), name);
descriptor.setCategory("Properties");
descciptors.add(descriptor);
}
return descciptors.toArray(new IPropertyDescriptor[0]);
}
项目:xeda
文件:DepartmentNode.java
public IPropertyDescriptor[] getPropertyDescriptors() {
IPropertyDescriptor[] descriptors;
descriptors = new IPropertyDescriptor[] {
new TextPropertyDescriptor(PROP_ID, PROP_ID),
new TextPropertyDescriptor(PROP_DESRIPTION, PROP_DESRIPTION),
};
return descriptors;
}
项目:cuina
文件:ObjectPropertySource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors()
{
IPropertyDescriptor[] list = new IPropertyDescriptor[6];
list[0] = new PropertyDescriptor(Attribut.OBJECT_ID, "ID");
list[1] = new TextPropertyDescriptor(Attribut.OBJECT_NAME, "Name");
list[2] = new TextPropertyDescriptor(Attribut.OBJECT_TEMPLATE, "Template");
list[3] = new NumberPropertyDescriptor(Attribut.OBJECT_X, "X");
list[4] = new NumberPropertyDescriptor(Attribut.OBJECT_Y, "Y");
list[5] = new NumberPropertyDescriptor(Attribut.OBJECT_Z, "Z");
return list;
}
项目:Open_Source_ECOA_Toolset_AS5
文件:NodePropertySource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
if (node instanceof ComponentImplementationNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.COMP_IMPL_COMP_DEF, "Component Definition"));
} else if (node instanceof ModuleTypeNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.MOD_TYPE_SUP_MOD, "Is Supervisory Module", NodeConstants.BOOL_OPTS));
} else if (node instanceof ModuleImplementationNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_TYPE, "Module Type"));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.MOD_IMPL_LANG, "Language", NodeConstants.LANG_OPTS));
} else if (node instanceof ModuleInstanceNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.MOD_INST_IMPL_NAME, "Implementation Name", getImplementations()));
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_REL_PRIORITY, "Priority"));
} else if (node instanceof ModuleOperationNode) {
ModuleOperationNode mNode = (ModuleOperationNode) node;
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.GENERIC_OP_TYPE, "Operation Type", mopTypes));
if (mNode.getType() != null && mNode.getType().equalsIgnoreCase(Enums.ModuleOperationTypes.REQUEST_SENT.name())) {
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.MOD_OP_SYNC, "Is Synchronous", NodeConstants.BOOL_OPTS));
properties.add(new TextPropertyDescriptor(NodeConstants.MOD_OP_TIMEOUT, "Timeout"));
}
if (mNode.getType() != null && (mNode.getType().equalsIgnoreCase(Enums.ModuleOperationTypes.DATA_READ.name()) || mNode.getType().equalsIgnoreCase(Enums.ModuleOperationTypes.DATA_WRITE.name()))) {
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.GENERIC_DATA_TYPE, "Data Type", getAllTypes()));
}
} else if (node instanceof ModuleOperationParameterNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.GENERIC_TYPE, "Type", pTypes));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.GENERIC_DATA_TYPE, "Data Type", dtTypes));
} else if (node instanceof TriggerInstanceNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_REL_PRIORITY, "Relative Priority"));
} else if (node instanceof DynamicTriggerInstanceNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_REL_PRIORITY, "Relative Priority"));
} else if (node instanceof ServiceNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new TextPropertyDescriptor(NodeConstants.SRVC_INTF_NAME, "Service Definition"));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.SRVC_TYPE, "Service Provision", sTypes));
} else if (node instanceof ServiceOperationNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.GENERIC_OP_TYPE, "Operation Type", sopTypes));
} else if (node instanceof ModuleInstancePropertyNode) {
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_NAME, "Name"));
properties.add(new ComboBoxPropertyDescriptor(NodeConstants.GENERIC_TYPE, "Type", sdtTypes));
properties.add(new TextPropertyDescriptor(NodeConstants.GENERIC_VALUE, "Value"));
}
return properties.toArray(new IPropertyDescriptor[0]);
}
项目:Open_Source_ECOA_Toolset_AS5
文件:LinkPropertySource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
properties.add(new TextPropertyDescriptor(RANK, "Rank"));
return properties.toArray(new IPropertyDescriptor[0]);
}
项目:Open_Source_ECOA_Toolset_AS5
文件:LinkPropertySource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
properties.add(new TextPropertyDescriptor(RANK, "Rank"));
return properties.toArray(new IPropertyDescriptor[0]);
}
项目:bdf2
文件:PropPropertySource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
return new IPropertyDescriptor[] { new TextPropertyDescriptor("key", "Key"),
new TextPropertyDescriptor("value", "Value") };
}
项目:ermasterr
文件:ERTablePropertySource.java
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
return new IPropertyDescriptor[] {new TextPropertyDescriptor("physicalName", ResourceString.getResourceString("label.physical.name")), new TextPropertyDescriptor("logicalName", ResourceString.getResourceString("label.logical.name"))};
}
项目:limpet
文件:PropertyTypeHandler.java
protected PropertyDescriptor doCreatePropertyDescriptor(String propertyId,
UIProperty metadata)
{
return new TextPropertyDescriptor(propertyId, metadata.name());
}
项目:limpet
文件:PropertyTypeHandler.java
protected PropertyDescriptor doCreatePropertyDescriptor(String propertyId,
UIProperty metadata)
{
return new TextPropertyDescriptor(propertyId, metadata.name());
}
项目:limpet
文件:PropertyTypeHandler.java
protected PropertyDescriptor doCreatePropertyDescriptor(
String propertyId, UIProperty metadata)
{
return new TextPropertyDescriptor(propertyId, metadata.name());
}