Java Code Examples for org.eclipse.ui.views.properties.PropertyDescriptor#setCategory()

The following examples show how to use org.eclipse.ui.views.properties.PropertyDescriptor#setCategory() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseElementPropertySource.java    From APICloud-Studio with GNU General Public License v3.0 6 votes vote down vote up
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()]);
}
 
Example 2
Source File: BaseElementPropertySource.java    From APICloud-Studio with GNU General Public License v3.0 6 votes vote down vote up
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()]);
}
 
Example 3
Source File: BaseElement.java    From APICloud-Studio with GNU General Public License v3.0 6 votes vote down vote up
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()]);
}
 
Example 4
Source File: CordovaPluginProperties.java    From thym with Eclipse Public License 1.0 5 votes vote down vote up
private static IPropertyDescriptor createPropertyDescriptor(String field, String label){
	PropertyDescriptor descriptor = new PropertyDescriptor(field, label);
	descriptor.setCategory("Cordova Plugin");
	descriptor.setAlwaysIncompatible(true);
	return descriptor;

	
}
 
Example 5
Source File: CordovaPlatformProperties.java    From thym with Eclipse Public License 1.0 5 votes vote down vote up
private static IPropertyDescriptor createPropertyDescriptor(String field, String label){
	PropertyDescriptor descriptor = new PropertyDescriptor(field, label);
	descriptor.setCategory("Cordova Platform");
	descriptor.setAlwaysIncompatible(true);
	return descriptor;

	
}