Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-19 01:26:14 -0400
committerMatthew Piggott2011-04-19 01:27:13 -0400
commit9c4c9e6f0c3b7f1636ba2ca0975d8b2aea7ae613 (patch)
tree4bc9be734dcc0a0aaa3fd85e4c38648cfbf7277b /org.eclipse.m2e.editor.xml
parent903e349338bfabcccb07e9916c3e16c8e6909427 (diff)
downloadm2e-core-9c4c9e6f0c3b7f1636ba2ca0975d8b2aea7ae613.tar.gz
m2e-core-9c4c9e6f0c3b7f1636ba2ca0975d8b2aea7ae613.tar.xz
m2e-core-9c4c9e6f0c3b7f1636ba2ca0975d8b2aea7ae613.zip
Code cleanup
Diffstat (limited to 'org.eclipse.m2e.editor.xml')
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java
index cc369ee0..416ced45 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java
@@ -201,7 +201,6 @@ class SchemaCompletionProposal implements ICompletionProposal, ICompletionPropos
IDOMModel domModel = null;
try {
domModel = (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForRead(doc);
- IStructuredDocument document = domModel.getStructuredDocument();
Element root = domModel.getDocument().getDocumentElement();
//now check parent version and groupid against the current project's ones..
@@ -664,7 +663,6 @@ static class IgnoreWarningProposal implements ICompletionProposal, ICompletionPr
}
if (reg != null && reg instanceof Element) { //just a simple guard against moved marker
try {
- int startLine = doc.getLineOffset(line);
String currentLine = StringUtils.convertToHTMLContent(doc.get(reg.getStartOffset(), reg.getEndOffset() - reg.getStartOffset()));
String insert = StringUtils.convertToHTMLContent("<!--" + markupText + "-->");
return "<html>...<br>" + currentLine + "<b>" + insert + "</b><br>...<html>"; //$NON-NLS-1$ //$NON-NLS-2$

Back to the top