org.eclipse.ui.views.properties.PropertyDescriptor#setCategory ( )源码实例Demo

下面列出了org.eclipse.ui.views.properties.PropertyDescriptor#setCategory ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

public IPropertyDescriptor[] getPropertyDescriptors()
{
	List<IPropertyDescriptor> result = new ArrayList<IPropertyDescriptor>();

	for (P p : getPropertyInfoSet())
	{
		PropertyDescriptor descriptor = new PropertyDescriptor(p, p.getHeader());
		String category = p.getCategory();

		if (!StringUtil.isEmpty(category))
		{
			descriptor.setCategory(category);
		}

		result.add(descriptor);
	}

	return result.toArray(new IPropertyDescriptor[result.size()]);
}
 
public IPropertyDescriptor[] getPropertyDescriptors()
{
	List<IPropertyDescriptor> result = new ArrayList<IPropertyDescriptor>();

	for (P p : getPropertyInfoSet())
	{
		PropertyDescriptor descriptor = new PropertyDescriptor(p, p.getHeader());
		String category = p.getCategory();

		if (!StringUtil.isEmpty(category))
		{
			descriptor.setCategory(category);
		}

		result.add(descriptor);
	}

	return result.toArray(new IPropertyDescriptor[result.size()]);
}
 
源代码3 项目: APICloud-Studio   文件: BaseElement.java
public IPropertyDescriptor[] getPropertyDescriptors()
{
	List<IPropertyDescriptor> result = new ArrayList<IPropertyDescriptor>();

	for (P p : getPropertyInfoSet())
	{
		PropertyDescriptor descriptor = new PropertyDescriptor(p, p.getHeader());
		String category = p.getCategory();

		if (!StringUtil.isEmpty(category))
		{
			descriptor.setCategory(category);
		}

		result.add(descriptor);
	}

	return result.toArray(new IPropertyDescriptor[result.size()]);
}
 
源代码4 项目: thym   文件: CordovaPluginProperties.java
private static IPropertyDescriptor createPropertyDescriptor(String field, String label){
	PropertyDescriptor descriptor = new PropertyDescriptor(field, label);
	descriptor.setCategory("Cordova Plugin");
	descriptor.setAlwaysIncompatible(true);
	return descriptor;

	
}
 
源代码5 项目: thym   文件: CordovaPlatformProperties.java
private static IPropertyDescriptor createPropertyDescriptor(String field, String label){
	PropertyDescriptor descriptor = new PropertyDescriptor(field, label);
	descriptor.setCategory("Cordova Platform");
	descriptor.setAlwaysIncompatible(true);
	return descriptor;

	
}