Ignore:
Timestamp:
11/08/11 22:51:40 (13 years ago)
Author:
masberg
Message:

Remove deprecated method that is no longer used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/text/ModelicaCodeResolver.java

    r533 r1083  
    291291        }                               
    292292        return null;       
    293     }   
    294    
    295     /**
    296      * @author Adrian Pop
    297      * @param editor
    298      * @param offset
    299      * @return IModelicaClass
    300      * @deprecated
    301      * @see ModelicaCodeResolver#getClassAt(ModelicaEditor, ISourceRegion)
    302      */
    303     public static IModelicaClass getClassAt(ModelicaEditor editor, int offset)
    304     {
    305         IEditorInput input = editor.getEditorInput();
    306         if (input instanceof ModelicaElementEditorInput)
    307         {
    308             IModelicaSourceFile file =
    309                 ((ModelicaElementEditorInput)input).getSourceFile();       
    310             try
    311             {
    312                 IModelicaClass c = file.getClassAt(offset);
    313                 return c;
    314             }
    315             catch (CoreException e)
    316             {
    317                 ErrorManager.showCoreError(e);
    318             }
    319             catch (CompilerException e)
    320             {
    321                 ErrorManager.showCompilerError(e);
    322             }
    323         }
    324         return null;
    325293    }
    326    
     294
    327295    /**
    328296     * @author Adrian Pop
Note: See TracChangeset for help on using the changeset viewer.