[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Use Java-Code-Editor in an Dialog

Johann Rosner wrote:
Hello i have tried your solution. But I failed!

I have appended my code (code.txt).

My problems are:
- sourceViewer.configurer(...) takes infinite time. The method never return. I don't know why. Any idea?
Nope. Works fine here. Simply debug or trace it to find out.
- The sourceViewer isn't editable. Can i change this? (2) doesn't work.
It is. You're probably doing something wrong.

Dani
- How can i (in code) insert Text into the sourceView?


Daniel Megert wrote:
Johann Rosner wrote:
Hello I have some problems, and i hope someone can help ;)

I am developing an RCP Application. And I need to integrate an Java-Code-Editor.

I think the editor I need is the CompilationUnitEditor (but im not sure).

So the problems are:
- The editor habe to be shown in (extra) Dialog.
This is not supported. You can use a source viewer and configure it with a JavaSourceViewerConfiguration though.

Dani
- The editor should provide, syntax-highlighting & code completion. (like in Eclipse IDE)
- I don't want to have the editor-Icons on the applications toolbar.


Any ideas how to manage this?
Thank you.