This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 486482 - Investigate making the JavaScript tools consumable outside of Orion
Summary: Investigate making the JavaScript tools consumable outside of Orion
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: JS Tools (show other bugs)
Version: 10.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 12.0   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 484136 489164 493743
Blocks:
  Show dependency tree
 
Reported: 2016-01-25 10:42 EST by Michael Rennie CLA
Modified: 2016-06-09 12:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2016-01-25 10:42:02 EST
While investigating using the Orion tools in other IDEs (as plugins) I ran into a lot of pitfalls, mainly around how tightly The tools are tied to Orion services.

We should investigate decoupling the core tools from the Orion services so they can be used anywhere (since most of them are based on static analysis of a standard AST).

A few places we need to start:

1. do not pass the service registry into any of the commands / implementation classes. 

2. separate the implementation of our commands from the Orion API hooks - for example implement the execute() function in javascriptPlugin.js but have the actual work done in the command class

3. Perhaps just have one JavaScript object that imports all of our tools + classes, and then have javaScriptPlugin.js import that and call functions for the desired support.
Comment 1 Michael Rennie CLA 2016-01-27 14:04:31 EST
The refactoring to be done for bug 484136 will also make this much easier.
Comment 2 Michael Rennie CLA 2016-05-17 14:56:43 EDT
We will not be turning the plugin into a worker - see the comments on bug 484136.

Instead we have a webpack build that creates a consumable bundle out of the tools.

The steps, and information about the API are available in the two wiki pages:

1. https://wiki.eclipse.org/Orion/JavaScript/API
2. https://wiki.eclipse.org/Orion/JavaScript/Build
Comment 3 Michael Rennie CLA 2016-06-09 12:19:28 EDT
The API has been released, with build steps / instructions / documentation. I think we can call this bug closed. Any incremental changes to the API can be done in their own bugs.