angelozerr / tern.java

Use tern.js in Java context
http://ternjs.net/
Other
249 stars 52 forks source link

[Tern Outline] Extension of outline #337

Open angelozerr opened 8 years ago

angelozerr commented 8 years ago

It shoud be cool if Tern Outline could be extended to displays other items like:

mickaelistria commented 8 years ago

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=479132 Switching to common navigator would allow Tern to contribute to outline using CNF framework. I'll soon provide a PR showing that.

angelozerr commented 8 years ago

Switching to common navigator would allow Tern to contribute to outline using CNF framework. I'll soon provide a PR showing that.

Cool!

But pay attention, we must fix problem with freeze of tern outline https://github.com/angelozerr/tern.java/issues/335 before

mickaelistria commented 8 years ago

The suggested PR is #348 I try to copy-paste a big file and didn't get UI freeze as the parsing jobs seems to be always called in its own thread.

angelozerr commented 8 years ago

@mickaelistria I have updated https://github.com/angelozerr/tern.java/issues/337#issue-108311345

I would like to know your opinion about displaying angular, grunt tasks, repository, files in the tern outline. Those information are global for the project and not according to the file which is edited.

My idea is to have this outline:

What do you think about that? I'm afraid that outline will host too much information. Perhaps we should have an other View to display global information of the project? Manu thanks for your suggestion.

mickaelistria commented 8 years ago

In Eclipse IDE, the Outline is in the context of the Editor, so it's better to avoid breaking that rule. I believe project-wide "symbolic elements" would better be shown in the Project Explorer. Here is for example of a screenshot of what project explorer look like with a JEE project in JBoss Tools: jbtwebprojectexplorer It shows in the same project explorer both the "filesystem elements" and the "logical structure" of the project. It's IMO more convenient than having a new view. IMO, you could have the similar grouping for JS projects.