org.jupe.editors.classdiagram.model
Class VisibilityPropertyDescriptor

java.lang.Object
  extended by org.eclipse.ui.views.properties.PropertyDescriptor
      extended by org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor
          extended by org.jupe.editors.classdiagram.model.VisibilityPropertyDescriptor
All Implemented Interfaces:
org.eclipse.ui.views.properties.IPropertyDescriptor

public class VisibilityPropertyDescriptor
extends org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor

Descriptor for a visibility property used for the combo box cell editor.

Author:
Michael Pradel

Constructor Summary
VisibilityPropertyDescriptor(java.lang.String id)
          Creates an property descriptor with the given id to display in the combo box cell editor.
 
Method Summary
static java.lang.Integer stringToInteger(java.lang.String visibility)
          Converts a given visibility to the corresponding integer.
 
Methods inherited from class org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor
createPropertyEditor, getLabelProvider
 
Methods inherited from class org.eclipse.ui.views.properties.PropertyDescriptor
getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, isCompatibleWith, isLabelProviderSet, setAlwaysIncompatible, setCategory, setDescription, setFilterFlags, setHelpContextIds, setLabelProvider, setValidator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibilityPropertyDescriptor

public VisibilityPropertyDescriptor(java.lang.String id)
Creates an property descriptor with the given id to display in the combo box cell editor.

Parameters:
id - the id of the property
Method Detail

stringToInteger

public static java.lang.Integer stringToInteger(java.lang.String visibility)
Converts a given visibility to the corresponding integer.

Parameters:
visibility - to convert
Returns:
the corresponding integer