public class Utility extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Utility.Location |
Constructor and Description |
---|
Utility() |
Modifier and Type | Method and Description |
---|---|
static IDocument |
getDocument(IFile file)
getDocument - get document using IFile - now no longer depends on text buffer; can return IDocument
even for a file that is not open in editor (and thus not in textbuffer)
|
static IDocument |
getDocument(String fullPathName)
get document using full path name
|
static String |
getInputFile(ITextEditor editor)
From an editor, determine the file (absolute path name) open in the editor.
|
static Utility.Location |
getLocation(IASTNode node)
compute the location relative to file, ignoring includes
|
public static Utility.Location getLocation(IASTNode node)
node
- - IASTNodepublic static IDocument getDocument(String fullPathName)
fullPathName
- - Stringpublic static IDocument getDocument(IFile file)
file
- - IFilepublic static String getInputFile(ITextEditor editor)
editor
- Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.