Questions tagged [jsdt]

JSDT known as Javascript Development Tools is a part of the Web Tools Platform in the Eclipse IDE.

65 questions
2
votes
1 answer

Organizing JavaScript code to be visible in Eclipse Outline

How should I organize my JavaScript code to be visible well in deep in the Eclipse JSDT's Outline View? For example, if I have a JS file containing the following content, Outline shows the one top level function only: function topLevel() { var…
pcjuzer
  • 2,724
  • 4
  • 25
  • 34
2
votes
0 answers

Eclipse Plugin Development - Modify the outline of JavaScript editor

I'm writing an eclipse plugin for JOII but got stuck on modifying the outline in a JavaScript editor. I have a ContentAssistant that provides me with a list of ICompletionProposal and got the IJavaCompletionProposalComputer functioning perfectly,…
Harold
  • 1,372
  • 1
  • 14
  • 25
2
votes
2 answers

Content assist with javaCompletionProposalComputer for Eclipse JSDT gives no proposal

Content assist with org.eclipse.wst.jsdt.ui.javaCompletionProposalComputer for Eclipse JSDT gives no proposal. In Preferences -> JavaScript -> Editor -> Content Assist -> Advanced "Nodeclipse Proposals" are visible, and selected. as advised by…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
2
votes
2 answers

Add IncludePathEntry to JavaScriptProject programmatically

I have a eclipse plugin contributing a project nature requiring the jsdt javaScriptNature. I now like to add a javascript library contained in my plugin to the includepath of the project programatically. Is there a way i can do this? I read…
Chris
  • 7,675
  • 8
  • 51
  • 101
1
vote
0 answers

intellisense for JSDT libraries not working with Eclipse 3.7

I have eclipse 3.6 with JSDT 1.2. I have integrated java-script editor in to my MultiPageEditorPart. I have added javascript facet to my project programatically and added a custom library called 'Studio library' for providing intelli-sense. The…
1
vote
1 answer

Disable an eclipse plugin that causes a conflict with a plugin in my Feature

I have an eclipse feature which essentially depends upon the Eclipse for Javascript Web Developers platform (it depends upon many plugins in there). However, one set of plugins causes a conflict with my feature's plugins: jsdt.debug.* So, the…
wildabeast
  • 1,723
  • 3
  • 18
  • 31
1
vote
1 answer

How to make contributions to JSDT Template Proposals

I've created an eclipse plugin which extends JSDT. When editing a JavaScript file, pressing Ctrl-Space shows "Default Proposals", consisting of general JavaScript Suggestions. Pressing Ctrl-Space again shows "Template Proposals", but the list is…
wildabeast
  • 1,723
  • 3
  • 18
  • 31
1
vote
0 answers

when using eclipse webtools JSDT, the validator doesn't recognise the "get someval() { return this.someVal }" syntax

When using JSDT to edit a javascript source file using this syntax for getter and setter like so; get action() { return this.aAction }, set action(action) { this.aAction = action }, it fails and returns an error; Syntax error on token "get",…
Tom
  • 3,324
  • 1
  • 31
  • 42
1
vote
1 answer

Eclipse JSDT: internal error NoClassDefFoundError: jdk/nashorn/internal/runtime/ECMAException

When I have tried to import a project containing some JavaScript into a Workspace (using the Neon.M6 Version of Eclipse), I get this error: eclipse.buildId=4.6.0.I20160317-0200 java.version=1.8.0_05 java.vendor=Oracle Corporation BootLoader…
Jmini
  • 9,189
  • 2
  • 55
  • 77
1
vote
1 answer

Eclipse JSDT stops giving proposals when using @memberOf

since i like to code in javascript pretty much like in other OOP environments, i like to modularize my code, like, creating a top namespace for my JS application like this: var myapp = {}; myapp.module = { member_function: function(param) { ... …
1
vote
1 answer

eclipse javascript plugins to detect inheritance

My project implemets inheritance via following code pattern: ScanTemplate1.prototype = Object.create(ScanTemplateBase.prototype); ScanTemplate1.prototype.contructor = ScanTemplate1; Here, ScanTemplate1 inherits from ScanTemplateBase class. Now in…
phalanx
  • 43
  • 9
1
vote
1 answer

Eclipse plugin development - JavaDoc like hover hint for JavaScript (Eclipse JSDT)

How to implement hover hint for JavaScript (Eclipse JSDT). I want when user hover over some keyword, some description is shown, like description in code completions: (source: nodeclipse.org) But that description should be also way to move that…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
1
vote
1 answer

How can I change tab to spaces in Nodeclipse .njs file formatter

It's easy to set up Code Formatter Preferences for JS file editor but what about Nodeclipse Node.js file Editor?
Marina Zubkova
  • 95
  • 1
  • 2
  • 7
1
vote
3 answers

How to indicate public/protected/private members in JSDT outline view?

Javascript Developer Tools (JSDT) for Eclipse provides a nice outline view of Javascript classes, with a little symbol next to them to indicate visibility. Looking at Preferences->Javascript->Appearance->Members Sort Order, it seems able to…
Paul Dixon
  • 295,876
  • 54
  • 310
  • 348
1
vote
1 answer

Content assist for Eclipse JSDT based Editor

In Eclipse content assist is usually implemented by some class that implements IContentAssistProcessor (JavaDoc, example) How to implement the same CompletionProposals for JSDT based Editor? The only example I know is…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332