下面列出了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()]);
}
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()]);
}
private static IPropertyDescriptor createPropertyDescriptor(String field, String label){
PropertyDescriptor descriptor = new PropertyDescriptor(field, label);
descriptor.setCategory("Cordova Plugin");
descriptor.setAlwaysIncompatible(true);
return descriptor;
}
private static IPropertyDescriptor createPropertyDescriptor(String field, String label){
PropertyDescriptor descriptor = new PropertyDescriptor(field, label);
descriptor.setCategory("Cordova Platform");
descriptor.setAlwaysIncompatible(true);
return descriptor;
}