Project project = ( ( ProjectWrapper ) element ).getProject();
ProjectType type = project.getType();
switch ( type )
{
case OFFLINE:
ProjectState state = project.getState();
switch ( state )
{
case OPEN:
return AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
PluginConstants.IMG_PROJECT_OFFLINE ).createImage();
case CLOSED:
return AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
PluginConstants.IMG_PROJECT_OFFLINE_CLOSED ).createImage();
}
case APACHE_DIRECTORY_SERVER:
ProjectState state2 = project.getState();
switch ( state2 )
{
case OPEN:
return AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
PluginConstants.IMG_PROJECT_ADS ).createImage();