|
Re: Javascript project - editor doesn't show new properties [message #782287 is a reply to message #780482] |
Mon, 23 January 2012 13:08 |
|
On 1/18/2012 4:15 AM, Alessandro Silvestri wrote:
> I'm new with Eclipse and Javascript, writing a Javascript project.
>
> I create a "class" inheriting from another.
> Everything works on the browser, all the properties do exist,
> but the Eclipse editor doesn't show me the property of the new class
> (eFORNITORI) once I add it.
>
> My eFORNITORI "class" inherits from e__cENTITY.
> I add in eFORNITORI a property to the "fields" object.
>
> The fields.id property inherited is visible from che eFORNITORI
> constructor,
> but the new fields.address property is NOT shown by the editor.
>
> Why?
>
>
> function cFIELD()
> {
> this.name = new String();
> this.caption = new String();
> }
>
> function e__cENTITY()
> {
> this.fields = new Object();
> this.fields.id = new cFIELD();
> this.fields.id.caption = 'Id';
> }
>
> //// eFORNITORI : e__cENTITY
>
> eFORNITORI.prototype = new e__cENTITY();
> eFORNITORI.prototype.constructor = eFORNITORI;
>
> function eFORNITORI()
> {
> // typing < this.fields. > the editor shows the id property
>
> this.fields.address = new cFIELD(); // new property of field object
>
> // typing < this.fields. > it doesn't show the address property
> this.fields.address.caption = 'Address';
> }
>
> var fornitori = new eFORNITORI();
> // typing < fornitori.fields. > it doesn't show the address property
>
>
>
Looks like a bug.
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JSDT&component=General
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.02243 seconds