Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Completition Proposal not working
icon8.gif  Completition Proposal not working [message #536666] Sat, 29 May 2010 10:16 Go to previous message
Filip Kis is currently offline Filip Kis
Messages: 31
Registered: April 2010
Member
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

	}

}



www.makumba.org - webapps in the fast lane
 
Read Message icon8.gif
Read Message
Read Message
Read Message
Previous Topic:m2eclipse mojo Exceptions
Next Topic:J2EE Runtime Library
Goto Forum:
  


Current Time: Sun May 19 21:57:44 EDT 2013

Powered by FUDForum. Page generated in 0.01794 seconds