if ( object instanceof File )
if ( object instanceof ResourceEntry )
			public void selectionChanged( SelectionChangedEvent event )			{				Object object = ( (StructuredSelection) event.getSelection( ) ).getFirstElement( );				if ( object instanceof File )				{					File file = (File) object;					if ( file.isDirectory( ) )					{						text.setEnabled( true );					}					else					{						text.setText( "" ); //$NON-NLS-1$						text.setEnabled( false );					}				}				else				{					text.setText( "" ); //$NON-NLS-1$					text.setEnabled( false );				}			}