|
Re: Error launching the preference page [message #331965 is a reply to message #331939] |
Tue, 30 September 2008 17:07 |
Eclipse User |
|
|
|
Originally posted by: gdind2003.gmail.com
Prakash,
I don't know how you tried. It works from Windows->Preferences. But if I
launch it in the middle of the program when I don't find a match and I
want to take the user directly to the preference page error occurs.
I can see the preference diaglog fine and I get NPE when I click OK.
Thanks,
--Gautam
Prakash G.R. wrote:
> I'm not getting any exception. Is there are any specific steps to
> reproduce the issue?
>
> - Prakash
>
|
|
|
Re: Error launching the preference page [message #332210 is a reply to message #331965] |
Fri, 10 October 2008 15:45 |
Eclipse User |
|
|
|
Originally posted by: gdind2003.gmail.com
Hi,
I am disappointed to get no answer on this. This is killing me.
Could anyone take a look at this.
Thanks in advance,
--Gautam
G Dev wrote:
> Prakash,
>
> I don't know how you tried. It works from Windows->Preferences. But if I
> launch it in the middle of the program when I don't find a match and I
> want to take the user directly to the preference page error occurs.
> I can see the preference diaglog fine and I get NPE when I click OK.
>
> Thanks,
>
> --Gautam
>
>
> Prakash G.R. wrote:
>> I'm not getting any exception. Is there are any specific steps to
>> reproduce the issue?
>>
>> - Prakash
>>
|
|
|
|
Re: Error launching the preference page [message #332213 is a reply to message #332211] |
Fri, 10 October 2008 16:53 |
Eclipse User |
|
|
|
Originally posted by: gdind2003.gmail.com
Hi,
The stack trace was provided in an earlier post. Also the source files
attached before.
Thanks,
--Gautam
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)
Olivier Thomann wrote:
> G Dev a écrit :
>> I am disappointed to get no answer on this. This is killing me.
>> Could anyone take a look at this.
> Did you provide a stack trace of the NPE exception ?
> Without this, I don't see what we can check or look at.
> --
> Olivier
|
|
|
|
Re: Error launching the preference page [message #332215 is a reply to message #332214] |
Fri, 10 October 2008 17:27 |
Eclipse User |
|
|
|
Originally posted by: gdind2003.gmail.com
It is actually my plugin which works fine when opened from Windows ->
Preference. But it gives error when launched by itself.
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
|
|
|
|
Re: Error launching the preference page [message #332281 is a reply to message #332238] |
Thu, 16 October 2008 17:22 |
Eclipse User |
|
|
|
Originally posted by: gdind2003.gmail.com
This is a multi-part message in MIME format.
--------------080808050307040601010604
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Thanks. That worked much better. What do you pass as the last argument?
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
|
|
|
|
Re: Error launching the preference page [message #332365 is a reply to message #332292] |
Mon, 20 October 2008 14:52 |
Eclipse User |
|
|
|
Originally posted by: gdind2003.gmail.com
Thanks. I wonder what the PreferenceUtil does that other method does
not. Any idea why the first page is coming blank?
--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.04740 seconds