Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Javascript project - editor doesn't show new properties
icon9.gif  Javascript project - editor doesn't show new properties [message #780482] Wed, 18 January 2012 09:15 Go to next message
Alessandro Silvestri is currently offline Alessandro Silvestri
Messages: 6
Registered: January 2012
Junior Member
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


Re: Javascript project - editor doesn't show new properties [message #782287 is a reply to message #780482] Mon, 23 January 2012 13:08 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
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 WTP, IBM
Previous Topic:Where are the files?
Next Topic:Is this forum helpful ?
Goto Forum:
  


Current Time: Sat Oct 25 07:57:32 GMT 2014

Powered by FUDForum. Page generated in 0.01790 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software