Skip to content

Custom Java-Editor clone for Plugin #2857

Answered by mickaelistria
M-Marvin asked this question in Q&A
Discussion options

You must be logged in to vote

Feel free to have a look at JDT code and suggest enhancement; however I think you can trust the dozen of people from various project (JDT, m2e, buildship...) who have all looked at this issue and all concluded that there is no such viable workaround to be found and that such case would require non-trivial, yet possible, changes in JDT Core.
However, for this case, especially if you create a particular extension/content-type, your initial idea might be more "workaround-friendly". Basically, there is the method getInputJavaElement() on JavaEditor and family you can override. What you will want is to build a different CompilationUnit for your case; particularly a custom CompilationUnit that …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@mickaelistria
Comment options

@M-Marvin
Comment options

@mickaelistria
Comment options

Answer selected by M-Marvin
@M-Marvin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants