Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [wtp-dev] [JSDT] any way to copy one type to another?

No way to make that work right now.

Can you open an enhancement request? Now that 3.2 is pretty much done, we're starting to think about what we should be working on next. So, its a good time to get enhancement ideas in.

Chris



Inactive hide details for Jacek Pospychała ---06/17/2010 10:11:02 AM---I'd like to have both Type1 and Type2 display the same Jacek Pospychała ---06/17/2010 10:11:02 AM---I'd like to have both Type1 and Type2 display the same in Outline and visible in content assist. Real world example could be jQ

          Jacek Pospychała <jacek.p@xxxxxxxx>
          Sent by: wtp-dev-bounces@xxxxxxxxxxx

          06/17/2010 10:10 AM

          Please respond to
          "General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>

To

"General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>

cc


Subject

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

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: wtp-dev-bounces@xxxxxxxxxxx [wtp-dev-bounces@xxxxxxxxxxx] on behalf of Christopher Jaun [cmjaun@xxxxxxxxxx]
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 <jacek.p@xxxxxxxx>
                  Sent by: wtp-dev-bounces@xxxxxxxxxxx
                  06/17/2010 09:34 AM
Please respond to
"General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>
To

"wtp-dev@xxxxxxxxxxx" <wtp-dev@xxxxxxxxxxx>
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
wtp-dev@xxxxxxxxxxx

https://dev.eclipse.org/mailman/listinfo/wtp-dev
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev

GIF image

GIF image

GIF image


Back to the top