|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Error launching the preference page [message #257029 is a reply to message #256989] |
Thu, 23 October 2008 11:10  |
Eclipse User |
|
|
|
G Dev wrote:
> Thanks. I wonder what the PreferenceUtil does that other method does
> not. Any idea why the first page is coming blank?
No idea. If you can reproduce then you should file a bug with a test case.
Dani
>
> --Gautam
>
> Daniel Megert wrote:
>> G Dev wrote:
>>> Thanks. That worked much better. What do you pass as the last argument?
>> This is optional. We sometimes pass in context that the page then
>> uses to select a concrete setting on the page.
>>
>> Dani
>>> I put null and it worked. Only one problem, my fast code main
>>> preference page is coming as blank as shown in the attachment.
>>>
>>> Thanks,
>>>
>>> --Gautam
>>>
>>> Daniel Megert wrote:
>>>> G Dev wrote:
>>>>> It is actually my plugin which works fine when opened from Windows
>>>>> -> Preference. But it gives error when launched by itself.
>>>> Hi Gautam,
>>>>
>>>> I took a quick look at your code. You should not directly create
>>>> the dialog. Instead use
>>>> org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialo gOn(Shell,
>>>> String, String[], Object)
>>>>
>>>> HTH
>>>> Dani
>>>>>
>>>>> Thanks,
>>>>>
>>>>> --Gautam
>>>>>
>>>>> Olivier Thomann wrote:
>>>>>
>>>>>> G Dev a écrit :
>>>>>>> The stack trace was provided in an earlier post. Also the source
>>>>>>> files attached before.
>>>>>> Sorry I missed it.
>>>>>>
>>>>>>> java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.fastcode.preferences.CreateSimilarPreferencePage.perform Ok(CreateSimilarPreferencePage.java:329)
>>>>>>> at
>>>>>>> org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:926)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> You have a bundle that provides a boggus preference page. I would
>>>>>> contact the provider of the
>>>>>> org.fastcode.preferences.CreateSimilarPreferencePage class.
>>>>>> --
>>>>>> Olivier
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>>
|
|
|
Powered by
FUDForum. Page generated in 0.40583 seconds