Error when trying to add a new Standard o Custom property tab.. [message #63209] |
Mon, 16 October 2006 07:09  |
Eclipse User |
|
|
|
Originally posted by: gabmecu.fiv.upv.es
Hi everyone. I'm having problems when trying to add a new tab in the
Property Sheet (in the .gmfgen file). When I try to add a new tab I
alwas get a cuple of errors, all related with de jface plug-in.
I'm working with GMF 2.0M2 and with the versions of the plugins listed
in the GMF download page.
Has anyone experienced the same probles? Any idea of the cause?
Thanks in advance.
Gabriel.
|
|
|
|
|
Re: Error when trying to add a new Standard o Custom property tab.. [message #64179 is a reply to message #63797] |
Tue, 17 October 2006 10:03   |
Eclipse User |
|
|
|
Originally posted by: gabmecu.fiv.upv.es
Thanks for answering! You're right, the next line in the stacktrace is
that one. The problem is that I'm not even able to create a new Gen
Custom/Standard PropertyTab.
From the tree view of platform:/resource/...gmfgen
-> The Gen Editor Generator has all the fields set (except Copyrigth
Text and Template Directory)
-> The Property Sheet has all the fields set too
The tabs can only be created from the PropertySheet, and the errors come
when I do: right click over Property Sheet -> New custom/standard Property
After the errors, instead of having the property (like the others three
that created automatically) I get an empty entry in the tree view, not
been able to do anything with it but deleting it.
I hope this throws some light over the problem. Anything in mind? I'm I
doing something wrong??
Thanks in advance!!
Gabriel
Artem Tikhomirov wrote:
> Guess, the next line in the stacktrace is GenPropertyTabImpl:140, right?
>
> ID attribute of GenPropertyTab is required, you need to set it. Also, I'd
> recommend to set label attribute as well.
>
>
> Artem
>
> "Gabriel Merin Cubero" <gabmecu@fiv.upv.es> wrote in message
> news:eh25uf$b27$1@utils.eclipse.org...
>> More information: The two identical errors I get when trying to add a new
>> tab in the Property Sheet are
>>
>> Problems occurred when invoking code from plug-in: "org.eclipse.jface".
>> java.lang.NullPointerException
>> at org.eclipse.emf.codegen.util.CodeGenUtil.capName(CodeGenUtil .java:392)
>> ...
>>
>> Could this be a bug? Any ideas?
>>
>> Thanks in advance.
>> Gabriel
>>
>> Gabriel Merin Cubero wrote:
>>> Hi everyone. I'm having problems when trying to add a new tab in the
>>> Property Sheet (in the .gmfgen file). When I try to add a new tab I alwas
>>> get a cuple of errors, all related with de jface plug-in.
>>>
>>> I'm working with GMF 2.0M2 and with the versions of the plugins listed in
>>> the GMF download page.
>>>
>>> Has anyone experienced the same probles? Any idea of the cause?
>>>
>>> Thanks in advance.
>>> Gabriel.
>
>
|
|
|
Re: Error when trying to add a new Standard o Custom property tab.. [message #64968 is a reply to message #64179] |
Wed, 18 October 2006 07:26   |
Eclipse User |
|
|
|
I see. There was a bug and I've just committed the fix, so you can try to
update to nightly build. However, you can ignore the errors and once there's
blank node, just get to property sheet and type in some value for label
(closing error dialog keeps focus in the cell editor and you can type in
some characters)
Artem
"Gabriel Merin Cubero" <gabmecu@fiv.upv.es> wrote in message
news:eh2nqk$df5$1@utils.eclipse.org...
> Thanks for answering! You're right, the next line in the stacktrace is
> that one. The problem is that I'm not even able to create a new Gen
> Custom/Standard PropertyTab.
>
> From the tree view of platform:/resource/...gmfgen
> -> The Gen Editor Generator has all the fields set (except Copyrigth Text
> and Template Directory)
> -> The Property Sheet has all the fields set too
>
> The tabs can only be created from the PropertySheet, and the errors come
> when I do: right click over Property Sheet -> New custom/standard Property
>
> After the errors, instead of having the property (like the others three
> that created automatically) I get an empty entry in the tree view, not
> been able to do anything with it but deleting it.
>
> I hope this throws some light over the problem. Anything in mind? I'm I
> doing something wrong??
>
> Thanks in advance!!
> Gabriel
>
> Artem Tikhomirov wrote:
>> Guess, the next line in the stacktrace is GenPropertyTabImpl:140, right?
>>
>> ID attribute of GenPropertyTab is required, you need to set it. Also, I'd
>> recommend to set label attribute as well.
>>
>>
>> Artem
>>
>> "Gabriel Merin Cubero" <gabmecu@fiv.upv.es> wrote in message
>> news:eh25uf$b27$1@utils.eclipse.org...
>>> More information: The two identical errors I get when trying to add a
>>> new tab in the Property Sheet are
>>>
>>> Problems occurred when invoking code from plug-in: "org.eclipse.jface".
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.emf.codegen.util.CodeGenUtil.capName(CodeGenUtil .java:392)
>>> ...
>>>
>>> Could this be a bug? Any ideas?
>>>
>>> Thanks in advance.
>>> Gabriel
>>>
>>> Gabriel Merin Cubero wrote:
>>>> Hi everyone. I'm having problems when trying to add a new tab in the
>>>> Property Sheet (in the .gmfgen file). When I try to add a new tab I
>>>> alwas get a cuple of errors, all related with de jface plug-in.
>>>>
>>>> I'm working with GMF 2.0M2 and with the versions of the plugins listed
>>>> in the GMF download page.
>>>>
>>>> Has anyone experienced the same probles? Any idea of the cause?
>>>>
>>>> Thanks in advance.
>>>> Gabriel.
>>
|
|
|
Re: (SOLVED) Error when trying to add a new Standard o Custom property tab.. [message #68911 is a reply to message #64968] |
Wed, 25 October 2006 05:45  |
Eclipse User |
|
|
|
Originally posted by: gabmecu.fiv.upv.es
Thank you very much! Editing the label (after the error) solves the
problem. There is also another bug when generating the diagram code from
the gmfen in the plugin.xml:
<propertyTabcategory="myCategory"
id="property.tab.myId"
label="%tab.myId"/>
it just a silly error. The only thing to do is to press Enter after
propertyTab :
<propertyTab
category="myCategory"
id="property.tab.myId"
label="%tab.myId"/>
Artem Tikhomirov wrote:
> I see. There was a bug and I've just committed the fix, so you can try to
> update to nightly build. However, you can ignore the errors and once there's
> blank node, just get to property sheet and type in some value for label
> (closing error dialog keeps focus in the cell editor and you can type in
> some characters)
>
> Artem
>
> "Gabriel Merin Cubero" <gabmecu@fiv.upv.es> wrote in message
> news:eh2nqk$df5$1@utils.eclipse.org...
>> Thanks for answering! You're right, the next line in the stacktrace is
>> that one. The problem is that I'm not even able to create a new Gen
>> Custom/Standard PropertyTab.
>>
>> From the tree view of platform:/resource/...gmfgen
>> -> The Gen Editor Generator has all the fields set (except Copyrigth Text
>> and Template Directory)
>> -> The Property Sheet has all the fields set too
>>
>> The tabs can only be created from the PropertySheet, and the errors come
>> when I do: right click over Property Sheet -> New custom/standard Property
>>
>> After the errors, instead of having the property (like the others three
>> that created automatically) I get an empty entry in the tree view, not
>> been able to do anything with it but deleting it.
>>
>> I hope this throws some light over the problem. Anything in mind? I'm I
>> doing something wrong??
>>
>> Thanks in advance!!
>> Gabriel
>>
>> Artem Tikhomirov wrote:
>>> Guess, the next line in the stacktrace is GenPropertyTabImpl:140, right?
>>>
>>> ID attribute of GenPropertyTab is required, you need to set it. Also, I'd
>>> recommend to set label attribute as well.
>>>
>>>
>>> Artem
>>>
>>> "Gabriel Merin Cubero" <gabmecu@fiv.upv.es> wrote in message
>>> news:eh25uf$b27$1@utils.eclipse.org...
>>>> More information: The two identical errors I get when trying to add a
>>>> new tab in the Property Sheet are
>>>>
>>>> Problems occurred when invoking code from plug-in: "org.eclipse.jface".
>>>> java.lang.NullPointerException
>>>> at
>>>> org.eclipse.emf.codegen.util.CodeGenUtil.capName(CodeGenUtil .java:392)
>>>> ...
>>>>
>>>> Could this be a bug? Any ideas?
>>>>
>>>> Thanks in advance.
>>>> Gabriel
>>>>
>>>> Gabriel Merin Cubero wrote:
>>>>> Hi everyone. I'm having problems when trying to add a new tab in the
>>>>> Property Sheet (in the .gmfgen file). When I try to add a new tab I
>>>>> alwas get a cuple of errors, all related with de jface plug-in.
>>>>>
>>>>> I'm working with GMF 2.0M2 and with the versions of the plugins listed
>>>>> in the GMF download page.
>>>>>
>>>>> Has anyone experienced the same probles? Any idea of the cause?
>>>>>
>>>>> Thanks in advance.
>>>>> Gabriel.
>
|
|
|
Powered by
FUDForum. Page generated in 0.04035 seconds