RSE
Release 1.0

org.eclipse.rse.ui.view
Class SystemComboBoxPropertyDescriptor

java.lang.Object
  extended byorg.eclipse.ui.views.properties.PropertyDescriptor
      extended byorg.eclipse.rse.ui.view.SystemComboBoxPropertyDescriptor
All Implemented Interfaces:
IPropertyDescriptor

public class SystemComboBoxPropertyDescriptor
extends PropertyDescriptor

A variation of the Eclipse-supplied ComboBoxPropertyDescriptor for displaying properties are a list. This list will be different for each selected object, hence we need the ability to change that list as each object is selected.


Field Summary
protected  String[] values
          The list of possible values to display in the combo box
 
Constructor Summary
SystemComboBoxPropertyDescriptor(Object id, String displayName)
          Creates an property descriptor with the given id, display name, but no list.
SystemComboBoxPropertyDescriptor(Object id, String displayName, String[] valuesArray)
          Creates an property descriptor with the given id, display name, and list of value labels to display in the combo box cell editor.
 
Method Summary
 CellEditor createPropertyEditor(Composite parent)
          The ComboBoxPropertyDescriptor implementation of this IPropertyDescriptor method creates and returns a new ComboBoxCellEditor.
 void setValues(String[] values)
          Set the values to display in the list.
 
Methods inherited from class org.eclipse.ui.views.properties.PropertyDescriptor
getAlwaysIncompatible, getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, getValidator, isCompatibleWith, isLabelProviderSet, setAlwaysIncompatible, setCategory, setDescription, setFilterFlags, setHelpContextIds, setLabelProvider, setValidator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected String[] values
The list of possible values to display in the combo box

Constructor Detail

SystemComboBoxPropertyDescriptor

public SystemComboBoxPropertyDescriptor(Object id,
                                        String displayName,
                                        String[] valuesArray)
Creates an property descriptor with the given id, display name, and list of value labels to display in the combo box cell editor.

Parameters:
id - the id of the property
displayName - the name to display for the property
valuesArray - the list of possible values to display in the combo box

SystemComboBoxPropertyDescriptor

public SystemComboBoxPropertyDescriptor(Object id,
                                        String displayName)
Creates an property descriptor with the given id, display name, but no list. You must call setValues.

Parameters:
id - the id of the property
displayName - the name to display for the property
Method Detail

createPropertyEditor

public CellEditor createPropertyEditor(Composite parent)
The ComboBoxPropertyDescriptor implementation of this IPropertyDescriptor method creates and returns a new ComboBoxCellEditor.

The editor is configured with the current validator if there is one.


setValues

public void setValues(String[] values)
Set the values to display in the list.


RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.