*/
public Image getImage( Object element )
{
if ( element instanceof ProjectWrapper )
{
Project project = ( ( ProjectWrapper ) element ).getProject();
ProjectType type = project.getType();
switch ( type )
{
case OFFLINE:
ProjectState state = project.getState();
switch ( state )
{
case OPEN:
return Activator.getDefault().getImage( PluginConstants.IMG_PROJECT_OFFLINE );
case CLOSED:
return Activator.getDefault().getImage( PluginConstants.IMG_PROJECT_OFFLINE_CLOSED );
}
case ONLINE:
ProjectState state2 = project.getState();
switch ( state2 )
{
case OPEN:
return Activator.getDefault().getImage( PluginConstants.IMG_PROJECT_ONLINE );
case CLOSED: