Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325112

Summary: Content assist does not propose a global function named like a java static method
Product: [WebTools] JSDT Reporter: Jim Zhang <jzhang>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: unspecified   
Target Milestone: 3.2.3   
Hardware: All   
OS: All   
Whiteboard:

Description Jim Zhang CLA 2010-09-13 09:35:36 EDT
Build Identifier: WTP 3.2

When i have a global function like this:

com.mycompany.app.Controller.showTransactions = function() { ... };

and I want to use content assist to get to the function, I type "show" then invoke the content assist.  I would expect the function to be proposed but it wasn't.

On the other hand, I get content assist on the "IType" portion.  if I type "Cont" and invoke content assist, I get the proposal for "com.mycompany.app.Controller".  then invoke content assist again off of the "IType", I finally get the proposal for the method. This is great but it's the "java way". I'd like to see the "javascript way" to work as well.

Reproducible: Always
Comment 1 Chris Jaun CLA 2010-09-13 10:17:09 EDT
There is not enough information for me to reproduce this.

Can you provide a complete source that includes the definition of the objects/types in question.
Comment 2 Chris Jaun CLA 2010-09-13 13:42:53 EDT

*** This bug has been marked as a duplicate of bug 324874 ***