I'd like to have both Type1 and Type2 display the same in Outline and visible 
in content assist. Real world example could be jQuery, e.g.:

 jQuery = function() {
}

jQuery.prototype.extend = function() {};
$ = jQuery;

So now jQuery has correct outline and content assist, whereas $ doesn't.

________________________________
From: [email protected] [[email protected]] on behalf of 
Christopher Jaun [[email protected]]
Sent: 17 June 2010 15:50
To: General discussion of project-wide or architectural issues.
Subject: Re: [wtp-dev] [JSDT] any way to copy one type to another?


Hi Jacek,

I don't think that works right now.

Can you explain what you mean by having JSDT understand them as the exact same 
thing just so I'm clear? What is the use case?

Chris



[Inactive hide details for Jacek Pospychała ---06/17/2010 09:35:29 
AM---hi,]Jacek Pospychała ---06/17/2010 09:35:29 AM---hi,


Jacek Pospychała <[email protected]>
Sent by: [email protected]

06/17/2010 09:34 AM
Please respond to
"General discussion of project-wide or architectural issues." 
<[email protected]>




To

"[email protected]" <[email protected]>

cc



Subject

[wtp-dev] [JSDT] any way to copy one type to another?



hi,
let's assume I have Type1 and Type2 which are the same:

/**
* @constructor
*/
Type1 = function() {
}

/**
* @memberOf Type1
*/
Type1.prototype.coolDynFunc = function() {
}

/**
* @magic
*/
Type2 = Type1;

is there a way to make JSDT understand this assignment and show Type1 and Type2 
as two exactly the same types?

thanks!

Jacek
_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to