//## todo: maybe support multiple files here?
public static void doGoTo( String strQualifedType )
  {
    EditorUtilities.showWaitCursor( true );
    try
    {
      IType type = TypeSystem.getByFullNameIfValid( strQualifedType );
      if( type == null )
      {
        return;
      }
      IFile[] sourceFiles = type.getSourceFiles();
      if( sourceFiles != null && sourceFiles.length > 0 )
      {
        //## todo: maybe support multiple files here?
        IFile sourceFile = sourceFiles[0];
        LabFrame.instance().openFile( PathUtil.create( sourceFile.toURI() ) );
      }
    }
    catch( Exception e )
    {
      throw new RuntimeException( e );
    }
    finally
    {
      EditorUtilities.showWaitCursor( false );
    }
  }
if( sourceFiles != null && sourceFiles.length > 0 )
{
//## todo: maybe support multiple files here?
IFile sourceFile = sourceFiles[0];
LabFrame.instance().openFile( PathUtil.create( sourceFile.toURI() ) );
try
{
IType type = TypeSystem.getByFullNameIfValid( strQualifedType );
if( type == null )
{
return;
}
IFile[] sourceFiles = type.getSourceFiles();
if( sourceFiles != null && sourceFiles.length > 0 )
{
//## todo: maybe support multiple files here?
IFile sourceFile = sourceFiles[0];
LabFrame.instance().openFile( PathUtil.create( sourceFile.toURI() ) );
}
}
catch( Exception e )
{
throw new RuntimeException( e );
}
finally
{
public static void doGoTo( String strQualifedType )
{
EditorUtilities.showWaitCursor( true );
try
{
IType type = TypeSystem.getByFullNameIfValid( strQualifedType );
if( type == null )
{
return;
}
IFile[] sourceFiles = type.getSourceFiles();
if( sourceFiles != null && sourceFiles.length > 0 )
{
//## todo: maybe support multiple files here?
IFile sourceFile = sourceFiles[0];
LabFrame.instance().openFile( PathUtil.create( sourceFile.toURI() ) );
}
}
catch( Exception e )
{
throw new RuntimeException( e );
}
finally
{
EditorUtilities.showWaitCursor( false );
}
}