DLTK IDE Guide examples - missing getTextTools? [message #22099] |
Mon, 07 April 2008 15:55  |
Eclipse User |
|
|
|
I am trying to build the example source files that I downloaded to accompany
the DLTK IDE Guide.
Right now, when I try to build the part 3 project
(org.eclipse.dltk.examples.python.part3), I get the following errors:
Severity and Description Path Resource Location Creation Time Id
The method getTextTools() is undefined for the type ExamplePythonUI
org.eclipse.dltk.examples.python.part3/src/org/eclipse/dltk/ examples/python/internal/ui/editor
ExamplePythonContentAssistPreference.java line 20 1207595417216 100898
The method getTextTools() is undefined for the type ExamplePythonUI
org.eclipse.dltk.examples.python.part3/src/org/eclipse/dltk/ examples/python/internal/ui/editor
ExamplePythonDocumentSetupParticipant.java line 28 1207595417216 100897
The method getTextTools() is undefined for the type ExamplePythonUI
org.eclipse.dltk.examples.python.part3/src/org/eclipse/dltk/ examples/python/internal/ui/editor
ExamplePythonEditor.java line 37 1207595417216 100896
Each of these lines of code looks like this:
ExamplePythonUI.getDefault().getTextTools();
ExamplePythonUI has the implementation of getDefault:
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static ExamplePythonUI getDefault() {
return plugin;
}
I'm not sure where this method should be defined.
Thanks,
Chuck
|
|
|
|
Re: DLTK IDE Guide examples - missing getTextTools? [message #22228 is a reply to message #22143] |
Wed, 09 April 2008 21:06  |
Eclipse User |
|
|
|
Indeed - you are right - I missed that.
That's what happens when I:
a) start to follow the tutorial (which automatically creates the plugin
class)
b) attempt to short circuit the tutorial by copying the downloaded
finished code
(but everything except the default plugin class created
automatically)
Sorry for the false problem report, and thanks for the quick response.
Chuck
"Andrei Sobolev" <haiodo@xored.com> wrote in message
news:ftf2go$ll4$1@build.eclipse.org...
> Hi Chuck,
>
> I suppose you just skipped step to define this method it.
>
> You should insert following code to ExamplePythonUI class.
> ////////
> private ExamplePythonTextTools fPythonTextTools;
>
> public synchronized ExamplePythonTextTools getTextTools() {
> if (fPythonTextTools == null)
> fPythonTextTools= new ExamplePythonTextTools(true);
> return fPythonTextTools;
> }
> //////
>
> Additional information in tutorial:
> http://wiki.eclipse.org/DLTK_IDE_Guide:Step_2._Towards_an_Ed itor#Source_configuration
>
> Best regards,
> Andrei Sobolev.
>
>> I am trying to build the example source files that I downloaded to
>> accompany
>> the DLTK IDE Guide.
>>
>> Right now, when I try to build the part 3 project
>> (org.eclipse.dltk.examples.python.part3), I get the following errors:
>>
>> Severity and Description Path Resource Location Creation Time Id
>> The method getTextTools() is undefined for the type ExamplePythonUI
>> org.eclipse.dltk.examples.python.part3/src/org/eclipse/dltk/ examples/python/internal/ui/editor
>> ExamplePythonContentAssistPreference.java line 20 1207595417216 100898
>> The method getTextTools() is undefined for the type ExamplePythonUI
>> org.eclipse.dltk.examples.python.part3/src/org/eclipse/dltk/ examples/python/internal/ui/editor
>> ExamplePythonDocumentSetupParticipant.java line 28 1207595417216 100897
>> The method getTextTools() is undefined for the type ExamplePythonUI
>> org.eclipse.dltk.examples.python.part3/src/org/eclipse/dltk/ examples/python/internal/ui/editor
>> ExamplePythonEditor.java line 37 1207595417216 100896
>>
>> Each of these lines of code looks like this:
>>
>> ExamplePythonUI.getDefault().getTextTools();
>>
>> ExamplePythonUI has the implementation of getDefault:
>>
>> /**
>>
>> * Returns the shared instance
>>
>> *
>>
>> * @return the shared instance
>>
>> */
>>
>> public static ExamplePythonUI getDefault() {
>>
>> return plugin;
>>
>> }
>>
>> I'm not sure where this method should be defined.
>>
>> Thanks,
>>
>> Chuck
>>
>>
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.07760 seconds