integrating Xtext with SWT Styled text - swt

I'm working on an eclipse plugin in which I have a wizard with several pages. on one of the pages, I need to integrate xtext editor in SWT styled text text area.
I have looked at documentation but didn't find any help in this regard.

Related

Rich text editor / RTE frameworks that works with Mark.js

I'm working on a project where I need advanced text highlighting features on a rich text editor.
I've came across mark.js, which has a really powerful API for text highlighting logic. However, I couldn't find any rich text editors, or rich text editor frameworks that works with mark.js.
I've been using draft.js, but I recently started looking for some alternatives. There are ones that stands out, such as Slate and Quill, but none of them seems to support mark.js.
Anyone know any alternative WYSIWYG editor that supports such a feature ?
Thanks!

How to build a pure e4 RCP Text Editor

I am using the latest Eclipse 4.7 Eclipse. I am trying to build a language sensitive editor for a pure e4 RCP application. I have modeled my editor after the example XML Text Editor template project (generated from File->New->Plug-in project). I have modified it and extended it to support my custom language (loosely based on specialized XML tags/elements/attributes).
I can run this plugin on its own from the default product “org.eclipse.platform.ide” and it works just fine. But I am trying to include this plug-in into my own pure e4 RCP application and I am having a challenge in figuring out how to present my custom editor.
I try to follow the tutorial from Vogella found here: http://www.vogella.com/tutorials/EclipseEditors/article.html#add-simple-content-assist
I even purchased the Vogella book.
But that example looks nothing like the standard XML Text Editor example. From the tutorial, it mentions that to launch the editor programmatically, it implies that you need to create your own implementation of IEditorInput – but how does this relate to how the example XML Text Editor provides input for the editor through extending the FileDocuementProvider?
Perhaps the XML Text Editor example is the old 3.X way of doing things and I need to refactor my editor. I can do this – but then are there pure e4 RCP Text Editor examples similar in functionality to the XML Text Editor example? I really do need the syntax highlighting, validation, support markers, etc. found in the XML Editor example. Where can I go to learn how to do this?

creating text based editor plugins for eclipse wizard page

I have developed an eclipse plugin project. I need a text editor that can save, copy, paste, search. This text editor must be inserted in the wizard pages which are developed using swt.
Any suggestions?
In a plug-in you can use the JFace org.eclipse.jface.text.TextViewer.
You will to provide save and search. TextViewer does support the interface required by the Eclipse org.eclipse.ui.texteditor.FindReplaceDialog.
If you really only want SWT code then use org.eclipse.swt.custom.StyledText

Eclipse form based XML editor

Can anyone suggest me some reading for creating Form based editor in Eclipse?
The right Google term would probably be "Eclipse Forms", and there are a few articles available:
Eclipse Forms API - Tutorial
Revitalize your applications with Eclipse Forms
Eclipse Forms: Rich UI for the Rich Client
Also, in general a good place to start searching for Eclipse material is http://www.eclipse.org/articles/

JFace examples in Eclipse like SWT Examples?

Are there any all-in-one JFace controls example out there like the SWT Examples in Eclipse? Searching (googling and searching here on stackoverflow.com) did not help me.
It would be nice if it was a standalone app or an eclipse plugin.
Thank you.
Aside from the SWT JFace examples and introduction courses, you have some projects based on JFace controls:
JFace Data Binding
CellLabelProvider TreeViewer example
Nebula project
Nebula is a place where different Eclipse-Projects and Independent developers collaborate on building Custom SWT widgets and reuseable UI-Components useable in UI-Applications built using SWT and JFace.
RCP Forms Plugin
The framework tries to hide some of the complexity of developing forms from you; as with all frameworks there might be points in time where it just does not work and you have to dig deeper into the secrets of SWT, JFace, UI Forms or Databinding
http://wiki.eclipse.org/index.php/JFaceSnippets
There is no all-in-one showcase example, but individual samples are available in the Eclipse CVS. You can check out the org.eclipse.jface.snippets project from the Eclipse CVS repo (WebView: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.snippets)