Package | Description |
---|---|
org.eclipse.m2e.editor.xml.internal |
Modifier and Type | Method and Description |
---|---|
static void |
XmlUtils.performOnCurrentElement(org.eclipse.jface.text.IDocument document,
int offset,
NodeOperation<Node> operation)
originally copied from org.eclipse.wst.xml.ui.internal.hyperlink.XMLHyperlinkDetector
this method grabs the IDOMModel for the IDocument, performs the passed operation on the node at the offset
and then releases the IDOMModel
operation's Node value is also an instance of IndexedRegion
|
static void |
XmlUtils.performOnRootElement(org.eclipse.jface.text.IDocument doc,
NodeOperation<Element> operation)
this method grabs the IDOMModel for the IDocument, performs the passed operation on the root element of the document
and then releases the IDOMModel
root Element value is also an instance of IndexedRegion
|
static void |
XmlUtils.performOnRootElement(org.eclipse.core.resources.IFile resource,
NodeOperation<Element> operation) |
Copyright © 2005-2013 Sonatype, Inc.. All Rights Reserved.