Re: Error launching the preference page [message #331939] |
Tue, 30 September 2008 01:33  |
Eclipse User |
|
|
|
I'm not getting any exception. Is there are any specific steps to reproduce
the issue?
- Prakash
--
http://blog.eclipse-tips.com
"G Dev" <gdind2003@gmail.com> wrote in message
news:48E1439E.9020107@gmail.com...
> Hi Prakash,
>
> I am giving the stack trace and also the src zip file. It is available
> in the project as well.
>
> 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)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:857)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 9)
> at
> org.eclipse.jface.preference.PreferenceDialog.okPressed(Pref erenceDialog.java:906)
> at
> org.eclipse.jface.preference.PreferenceDialog.buttonPressed( PreferenceDialog.java:233)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:618)
>
> Thanks for help,
>
> --Gautam
>
> Prakash G.R. wrote:
>> Gautam,
>>
>> Attaching the stack trace/the few lines of source where NPE occurs
>> might be useful for others who try to investigate this issue. BTW, are
>> you passing the right parent for the Field Editors?
>>
>> - Prakash
>>
>
>
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Error launching the preference page [message #332500 is a reply to message #332365] |
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.03555 seconds