Changeset 1083 for trunk/org.modelica.mdt.ui/src/org/modelica
- Timestamp:
- 11/08/11 22:51:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/text/ModelicaCodeResolver.java
r533 r1083 291 291 } 292 292 return null; 293 }294 295 /**296 * @author Adrian Pop297 * @param editor298 * @param offset299 * @return IModelicaClass300 * @deprecated301 * @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 try311 {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;325 293 } 326 294 327 295 /** 328 296 * @author Adrian Pop
Note: See TracChangeset
for help on using the changeset viewer.