Hi guys!
I really hope you can help me, because my project depends on this and I'm running out of time and solutions.
I'm developing a plugin that should provide extra proposals while editing jsp file. But I never managed to get it working. So I've tried with a new plugin (to make sure some of my code is not messing up) and while debugging it I've noticed that sessionStarted() method is called, but the computeCompletionProposals() is never called.
Did I do something wrong or is there a error somewhere in the plugin extension code.
Please if there is any way this can be solved ASAP I would appreciate it a lot.
Here is my plugin.xml;
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.wst.sse.ui.completionProposal">
<proposalComputer
activate="true"
categoryId="org.eclipse.jst.jsp.ui.proposalCategory.jsp"
class="testincompletionproposal.CompletionProposalComputer2"
id="TestinCompletionProposal.proposalComputer2">
<contentType
id="jspsource">
</contentType>
</proposalComputer>
</extension>
</plugin>
And here is the proposal computer code. Currently there is nothing here, but as said earlier, the debug shows that the computeCompletionProposals is never accessed.
package testincompletionproposal;
import java.util.List;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.wst.sse.ui.contentassist.CompletionProposalInvocationContext;
import org.eclipse.wst.sse.ui.contentassist.ICompletionProposalComputer;
public class CompletionProposalComputer2 implements ICompletionProposalComputer {
public void sessionStarted() {
// TODO Auto-generated method stub
}
public List computeCompletionProposals(CompletionProposalInvocationContext context, IProgressMonitor monitor) {
return null;
}
public List computeContextInformation(CompletionProposalInvocationContext context, IProgressMonitor monitor) {
// TODO Auto-generated method stub
return null;
}
public String getErrorMessage() {
// TODO Auto-generated method stub
return null;
}
public void sessionEnded() {
// TODO Auto-generated method stub
}
}