Commit 86585b1c authored by Johannes Roith's avatar Johannes Roith

Cleanup.

parent 526dd27e
......@@ -16,7 +16,6 @@ import org.eclipse.jface.text.contentassist.IContextInformationValidator;
import de.in.tum.www2.cup.Declarations;
import de.in.tum.www2.cup.ast.ParserResult;
import de.tum.in.www2.cupplugin.IDisposable;
import de.tum.in.www2.cupplugin.controller.Controller;
import de.tum.in.www2.cupplugin.model.*;
public class CupContentAssistProcessor implements IContentAssistProcessor,
......@@ -39,7 +38,6 @@ public class CupContentAssistProcessor implements IContentAssistProcessor,
}
private void updateFromParserResult(ParserResult result) {
System.out.println("CupContentAssistProcessor DECLARATIONS UPDATED!");
if (result == null)
return;
this.decls = result.findDeclarations();
......@@ -53,9 +51,6 @@ public class CupContentAssistProcessor implements IContentAssistProcessor,
@Override
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,
int offset) {
System.out.println("autocompletion called!");
IDocument doc = viewer.getDocument();
ITypedRegion partition = null;
try {
......@@ -155,10 +150,8 @@ public class CupContentAssistProcessor implements IContentAssistProcessor,
}
try {
char aChar = doc.getChar(offset);
if (Character.isWhitespace(aChar)) {
if (Character.isWhitespace(aChar))
return aWord;
}
while (!Character.isWhitespace(aChar)) {
aWord = aChar + aWord;
......@@ -200,14 +193,6 @@ public class CupContentAssistProcessor implements IContentAssistProcessor,
@Override
public IContextInformation[] computeContextInformation(ITextViewer viewer,
int offset) {
/*
* IContextInformation[] result= new IContextInformation[5]; for (int i=
* 0; i < result.length; i++) result[i]= new ContextInformation(
* MessageFormat.format("huhu!", new Object[] { new Integer(i), new
* Integer(offset) }), MessageFormat.format("huhu2", new Object[] { new
* Integer(i), new Integer(offset - 5), new Integer(offset)})); return
* result;
*/
return null;
}
......@@ -228,18 +213,15 @@ public class CupContentAssistProcessor implements IContentAssistProcessor,
@Override
public char[] getContextInformationAutoActivationCharacters() {
return null;
// return new char[] { '#' }; // TODO: remove
}
@Override
public String getErrorMessage() {
// TODO Auto-generated method stub
return null;
}
@Override
public IContextInformationValidator getContextInformationValidator() {
// TODO Auto-generated method stub
return null;
}
......
......@@ -154,7 +154,6 @@ public class CupContentOutlinePage extends ContentOutlinePage implements
viewer.getTree().setRedraw(true);
// viewer.getControl().setRedraw(true);
}
System.out.println("CupContentOutlinePage UPDATED!");
}
@Override
......@@ -428,7 +427,6 @@ public class CupContentOutlinePage extends ContentOutlinePage implements
}
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
System.out.println("inputChanged called!");
}
public Object[] getElements(Object inputElement) {
......
......@@ -92,7 +92,6 @@ public class CupTextHover implements ITextHover, IDisposable,
public IRegion getHoverRegion(ITextViewer textViewer, int offset) {
if (this.ast == null)
return null;
System.out.println("offset: " + offset);
// TODO: visiting on every hover is a bit expensive ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment