Java源码示例:org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor
示例1
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
final List<String> dbList = DBManagerFactory.getAllDBList();
return new IPropertyDescriptor[] { new ComboBoxPropertyDescriptor("database", DisplayMessages.getMessage("label.database"),
dbList.toArray(new String[dbList.size()])) };
}
示例2
public IPropertyDescriptor[] getPropertyDescriptors() {
List<String> dbList = DBManagerFactory.getAllDBList();
return new IPropertyDescriptor[] { new ComboBoxPropertyDescriptor(
"database", ResourceString.getResourceString("label.database"),
dbList.toArray(new String[dbList.size()])) };
}
示例3
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
final List<String> dbList = DBManagerFactory.getAllDBList();
return new IPropertyDescriptor[] {new ComboBoxPropertyDescriptor("database", ResourceString.getResourceString("label.database"), dbList.toArray(new String[dbList.size()]))};
}