Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » org.eclipse.jdt.ui.javaCompletionProposalComputer
org.eclipse.jdt.ui.javaCompletionProposalComputer [message #252963] Thu, 24 April 2008 04:56 Go to next message
Eclipse UserFriend
Originally posted by: reg.zhuce.163.com

I use this extention point to give some completion proposals.
And I have implemented the IJavaCompletionProposalComputer.
But it does not work.
Is it enough to make the plug-in launched whenever the completion action
is triggered?
or is there any more configurations I must make?
By the way, may I define some special auto-activation-characters only
for my plug-in?
Re: org.eclipse.jdt.ui.javaCompletionProposalComputer [message #252968 is a reply to message #252963] Thu, 24 April 2008 05:23 Go to previous messageGo to next message
Eclipse UserFriend
dazh wrote:
> I use this extention point to give some completion proposals.
> And I have implemented the IJavaCompletionProposalComputer.
> But it does not work.
> Is it enough to make the plug-in launched whenever the completion action
> is triggered?
>
Not sure what you mean.
> or is there any more configurations I must make?
>
If you want your plug-in to be activated then you need to add the
following attribute, as outlined in the doc:
activate="true"
> By the way, may I define some special auto-activation-characters only
> for my plug-in?
>
No, you cannot do this as this is a user preference which you shouldn't
modify.


Dani
Re: org.eclipse.jdt.ui.javaCompletionProposalComputer [message #252978 is a reply to message #252968] Thu, 24 April 2008 11:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: reg.zhuce.163.com

Daniel Megert 写道:
> dazh wrote:
>> I use this extention point to give some completion proposals.
>> And I have implemented the IJavaCompletionProposalComputer.
>> But it does not work.
>> Is it enough to make the plug-in launched whenever the completion action
>> is triggered?
>>
> Not sure what you mean.

>> or is there any more configurations I must make?
>>
> If you want your plug-in to be activated then you need to add the
> following attribute, as outlined in the doc:
> activate="true"
Thank you.
I just mean I have completed plugin.xml and an class implementing the
IJavaCompletionProposalComputer, which is the value of the "class
"attribute for this extention point.
And your suggestion is to the point.The plug-in is launched.
But the method computeCompletionProposals is never called.So it still
can not show any proposals.
>> By the way, may I define some special auto-activation-characters only
>> for my plug-in?
>>
> No, you cannot do this as this is a user preference which you shouldn't
> modify.
Then I have no way to differentiate the auto-activation-character for
different CompletionProposalComputers?
I do not want the proposals showed after a character like '.'.
>
>
> Dani
Re: org.eclipse.jdt.ui.javaCompletionProposalComputer [message #252981 is a reply to message #252978] Thu, 24 April 2008 11:54 Go to previous messageGo to next message
Eclipse UserFriend
dazh wrote:
> Daniel Megert 写道:
>
>> dazh wrote:
>>
>>> I use this extention point to give some completion proposals.
>>> And I have implemented the IJavaCompletionProposalComputer.
>>> But it does not work.
>>> Is it enough to make the plug-in launched whenever the completion action
>>> is triggered?
>>>
>>>
>> Not sure what you mean.
>>
>
>
>>> or is there any more configurations I must make?
>>>
>>>
>> If you want your plug-in to be activated then you need to add the
>> following attribute, as outlined in the doc:
>> activate="true"
>>
> Thank you.
> I just mean I have completed plugin.xml and an class implementing the
> IJavaCompletionProposalComputer, which is the value of the "class
> "attribute for this extention point.
> And your suggestion is to the point.The plug-in is launched.
> But the method computeCompletionProposals is never called.So it still
> can not show any proposals.
>
Maybe you did not add your computer to the default category. If so, you
first need to enable it on the Java > Editor > Content Assist > Advanced
pref page.
>>> By the way, may I define some special auto-activation-characters only
>>> for my plug-in?
>>>
>>>
>> No, you cannot do this as this is a user preference which you shouldn't
>> modify.
>>
> Then I have no way to differentiate the auto-activation-character for
> different CompletionProposalComputers?
> I do not want the proposals showed after a character like '.'.
>
Your computer returns the proposals and you know where the completion is
inserted. Simply check whether it is a '.' and then don't return proposals.

Dani
>> Dani
>>
Re: org.eclipse.jdt.ui.javaCompletionProposalComputer [message #252990 is a reply to message #252981] Thu, 24 April 2008 12:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: reg.zhuce.163.com

Daniel Megert 写道:
> dazh wrote:
>> Daniel Megert 写道:
>>
>>> dazh wrote:
>>>
>>>> I use this extention point to give some completion proposals.
>>>> And I have implemented the IJavaCompletionProposalComputer.
>>>> But it does not work.
>>>> Is it enough to make the plug-in launched whenever the completion action
>>>> is triggered?
>>>>
>>>>
>>> Not sure what you mean.
>>>
>>
>>>> or is there any more configurations I must make?
>>>>
>>>>
>>> If you want your plug-in to be activated then you need to add the
>>> following attribute, as outlined in the doc:
>>> activate="true"
>>>
>> Thank you.
>> I just mean I have completed plugin.xml and an class implementing the
>> IJavaCompletionProposalComputer, which is the value of the "class
>> "attribute for this extention point.
>> And your suggestion is to the point.The plug-in is launched.
>> But the method computeCompletionProposals is never called.So it still
>> can not show any proposals.
>>
> Maybe you did not add your computer to the default category. If so, you
> first need to enable it on the Java > Editor > Content Assist > Advanced
> pref page.
But it has already been checked.
Is there any other possibility?
>>>> By the way, may I define some special auto-activation-characters only
>>>> for my plug-in?
>>>>
>>>>
>>> No, you cannot do this as this is a user preference which you shouldn't
>>> modify.
>>>
>> Then I have no way to differentiate the auto-activation-character for
>> different CompletionProposalComputers?
>> I do not want the proposals showed after a character like '.'.
>>
> Your computer returns the proposals and you know where the completion is
> inserted. Simply check whether it is a '.' and then don't return proposals.
That sounds to lose some efficiency.
Any way,it is a useful solution.
Thanks again.
>
> Dani
>>> Dani
>>>
Re: org.eclipse.jdt.ui.javaCompletionProposalComputer [message #253007 is a reply to message #252981] Sat, 26 April 2008 07:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: reg.zhuce.163.com

Daniel Megert 写道:
> dazh wrote:
>> Daniel Megert 写道:
>>
>>> dazh wrote:
>>>
>>>> I use this extention point to give some completion proposals.
>>>> And I have implemented the IJavaCompletionProposalComputer.
>>>> But it does not work.
>>>> Is it enough to make the plug-in launched whenever the completion action
>>>> is triggered?
>>>>
>>>>
>>> Not sure what you mean.
>>>
>>
>>>> or is there any more configurations I must make?
>>>>
>>>>
>>> If you want your plug-in to be activated then you need to add the
>>> following attribute, as outlined in the doc:
>>> activate="true"
>>>
>> Thank you.
>> I just mean I have completed plugin.xml and an class implementing the
>> IJavaCompletionProposalComputer, which is the value of the "class
>> "attribute for this extention point.
>> And your suggestion is to the point.The plug-in is launched.
>> But the method computeCompletionProposals is never called.So it still
>> can not show any proposals.
>>
> Maybe you did not add your computer to the default category. If so, you
> first need to enable it on the Java > Editor > Content Assist > Advanced
> pref page.
>>>> By the way, may I define some special auto-activation-characters only
>>>> for my plug-in?
>>>>
>>>>
>>> No, you cannot do this as this is a user preference which you shouldn't
>>> modify.
>>>
>> Then I have no way to differentiate the auto-activation-character for
>> different CompletionProposalComputers?
>> I do not want the proposals showed after a character like '.'.
>>
> Your computer returns the proposals and you know where the completion is
> inserted. Simply check whether it is a '.' and then don't return proposals.
Another question in the opposite direction:
Is it possible to prevent the built-in proposals showing after the
characters I add?
>
> Dani
>>> Dani
>>>
Re: org.eclipse.jdt.ui.javaCompletionProposalComputer [message #253011 is a reply to message #253007] Sat, 26 April 2008 08:46 Go to previous message
Eclipse UserFriend
dazh wrote:
> Daniel Megert 写道:
>
>> dazh wrote:
>>
>>> Daniel Megert 写道:
>>>
>>>
>>>> dazh wrote:
>>>>
>>>>
>>>>> I use this extention point to give some completion proposals.
>>>>> And I have implemented the IJavaCompletionProposalComputer.
>>>>> But it does not work.
>>>>> Is it enough to make the plug-in launched whenever the completion action
>>>>> is triggered?
>>>>>
>>>>>
>>>>>
>>>> Not sure what you mean.
>>>>
>>>>
>>>
>>>
>>>>> or is there any more configurations I must make?
>>>>>
>>>>>
>>>>>
>>>> If you want your plug-in to be activated then you need to add the
>>>> following attribute, as outlined in the doc:
>>>> activate="true"
>>>>
>>>>
>>> Thank you.
>>> I just mean I have completed plugin.xml and an class implementing the
>>> IJavaCompletionProposalComputer, which is the value of the "class
>>> "attribute for this extention point.
>>> And your suggestion is to the point.The plug-in is launched.
>>> But the method computeCompletionProposals is never called.So it still
>>> can not show any proposals.
>>>
>>>
>> Maybe you did not add your computer to the default category. If so, you
>> first need to enable it on the Java > Editor > Content Assist > Advanced
>> pref page.
>>
>>>>> By the way, may I define some special auto-activation-characters only
>>>>> for my plug-in?
>>>>>
>>>>>
>>>>>
>>>> No, you cannot do this as this is a user preference which you shouldn't
>>>> modify.
>>>>
>>>>
>>> Then I have no way to differentiate the auto-activation-character for
>>> different CompletionProposalComputers?
>>> I do not want the proposals showed after a character like '.'.
>>>
>>>
>> Your computer returns the proposals and you know where the completion is
>> inserted. Simply check whether it is a '.' and then don't return proposals.
>>
> Another question in the opposite direction:
> Is it possible to prevent the built-in proposals showing after the
> characters I add?
>
No.

Dani
>> Dani
>>
>>>> Dani
>>>>
>>>>
>
>
>
Previous Topic:Compiler compliance level
Next Topic:markerAnnotationSpecification does not work
Goto Forum:
  


Current Time: Fri May 30 20:54:26 EDT 2025

Powered by FUDForum. Page generated in 0.24859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top