Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Problem with Javascript function inside objects on WTP 3.3.2(Updating from 3.3.1 to 3.3.2 disappeared with some functions from the Outline Panel)
Problem with Javascript function inside objects on WTP 3.3.2 [message #806482] Sat, 25 February 2012 02:13
Samuel Sol is currently offline Samuel SolFriend
Messages: 24
Registered: January 2011
Junior Member
Hey guys,

Let's see if I can explain what the issue is so you can tell me if it is a bug and how to report it better. Although as the title implies it is related to Javascript, I think it was a behavior changed on WTP 3.3.1 that got rollback on 3.3.2 .

Before updating, the Outline panel of Eclipse would not "find" functions that were two level deep in an object. For example, on the below file:

//file 1
var GOBJ = {};
GOBJ.dataA = {};
GOBJ.dataB = false;

//file 2
var GOBJ;
GOBJ.functions = {};
GOBJ.functions.funcA = function(){};
GOBJ.functions.funcB = function(){};
GOBJ.functions.funcC = function(){};

Before updating to WTP 3.3.1 , the outline panel for file 2 would be empty, the only thing showing was GOBJ:___GOBJ(). After the update, the functions started appearing correctly. So the Outline would now be:


And clicking on the name would correctly send you to the line. Today I update Indigo completely, and as part of the update WTP got updated to 3.3.2 and the behavior is now the same as on 3.3.0. Now since I updated the fully Indigo\PDT package today, the problem might be somewhere else, but since it only started working on 3.3.1 I think it might be in here.
Previous Topic:wtp, m2eclipse, Glassfish, jar/war: .java instead of .class files deployed to app server?
Next Topic:extending xml wizard?
Goto Forum:

Current Time: Mon Oct 05 15:14:06 GMT 2015

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

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