public class Utility
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Utility.Location |
| Constructor and Description |
|---|
Utility() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.jface.text.IDocument |
getDocument(org.eclipse.core.resources.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 org.eclipse.jface.text.IDocument |
getDocument(java.lang.String fullPathName)
get document using full path name
|
static java.lang.String |
getInputFile(org.eclipse.ui.texteditor.ITextEditor editor)
From an editor, determine the file (absolute path name) open in the editor.
|
static Utility.Location |
getLocation(org.eclipse.cdt.core.dom.ast.IASTNode node)
compute the location relative to file, ignoring includes
|
public static Utility.Location getLocation(org.eclipse.cdt.core.dom.ast.IASTNode node)
node - - IASTNodepublic static org.eclipse.jface.text.IDocument getDocument(java.lang.String fullPathName)
fullPathName - - Stringpublic static org.eclipse.jface.text.IDocument getDocument(org.eclipse.core.resources.IFile file)
file - - IFilepublic static java.lang.String getInputFile(org.eclipse.ui.texteditor.ITextEditor editor)
editor - Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.