Looks like Activiti's diagramm editor lacks some elements descirbed in their guide. I'm especially looking for the Cancel End Event. If i try to alter the generated XML to have the correct node editor destroys my modifications by further edits.
Am i using an old version of the editor or these elements are really not implemented in the plugin?
It seems that Yaogiang's BPMN editor is more featureful in scope of Activiti elements. So i'm moving on to that. I'm still testing it though.
Related
I want to create a plugin for Eclipse that allows me to edit a file in a graphical way. Parsing and saving the file is no problem, but I can't seem to figure out the simplest way of designing an editor in Eclipse. I guess this must be super easy, but I can only find complex examples when googling, and no simple solution for quickly sticking together a GUI as an editor (I don't want to define an entire EMF model etc. for this simple task).
The editor should only have a few simple lists and add and delete button to edit these lists. In should open when I double click the file with the appropriate file ending.
Questions:
In RCP4 required for this or just a normal editor plugin?
In started of with the normal editor plugin generated by the Wizard that provides a XMLEditor. What is the recommend way for adding these simple model editing elements (lists)?
I'm working on a similar editor using Window Builder, Forms, and EMF JFace data bindings.
It is not that complex, but I wouldn't call it simple either. Or, put it differently - it is all simple once you know how it works, but you'll have to invest some time in gaining that knowledge.
Some links which should help you get started:
https://eclipse.org/windowbuilder/
http://blog.vogella.com/2016/06/14/helping-windowbuilder/ - WindowBuilder for Neon
http://www.vogella.com/tutorials/EclipseDataBindingEMF/article.html
http://www.vogella.com/tutorials/EclipseDataBinding/article.html
https://tomsondev.files.wordpress.com/2011/05/emf-databinding.pdf
https://wiki.eclipse.org/JFace_Data_Binding
https://www.eclipse.org/articles/Article-Forms/article.html
I've implemented content assist in my RCP app, but I can't figure out how to make the completion proposal work like the JDT content assist capability when it's applied in the document. Specifically, when you select a Java completion proposal and apply it, it has appearance and focus behavior that lets you edit it before accepting it. There are thin borders drawn around each parameter, and you can tab through the method arguments and the text of the next argument is automatically selected when you do so. There is lots of information on implementing content assist on the web, but I can't find anything that addresses how to do this.
Thanks to greg-449 for pointing me to JFace templates. I reviewed the API for the classes in org.eclipse.jface.text.templates per his comment. Seemed like a good approach, though certainly not trivial, as he alluded.
However, I found a simpler solution in the PyDev code (which my app is extending). PyLinkedModeCompletionProposal does something similar to what I want, so I copied that class and modified it as needed. (I just have a different template pattern.)
The implementation in PyLinkedModeCompletionProposal#goToLinkedMode uses the JFace classes LinkedModeModel, EditorLinkedModeUI, and ProposalPosition to place completion proposals in the editor as an editable template.
At work we are using a proprietary language and to program we are using Notepad++ with a simple code highlight. That is really annoying so, what I want to do is to invest some time to setup a text editor or an existing IDE to support my language.
I've googled a lot and there are so many options and before starting to work I wanna ask to you what is the best choice.
What I want to do is to have, like an IDE, a syntax highlight, a window with the function list tree, with the local function variables inside the same subtree, maybe text autocomplete (if I type "pro" I would like to see the suggestion "procedure" and if I press enter it will write for me something like
procedure "name" {
--code--
}
with the cursor on "name" ready to change it.
etc etc...
Can you suggest me the right path to follow?
Is it to keep using Notepad++? With sourcecookifier? functionlist?
Or I have to change to another text editor?
Or there is some famous IDE like Eclipse, NetBeans etc that allow to easily add my own language?
PS. my language is pretty simple, I don't have complex structures, is Pascal-like. Something like that:
variable int xyz
PROCEDURE asd
BEGIN
END PROCEDURE asd
I would recommend you to stay with Notepad++ and extend it with some plugins and configuration. This would be fairly quick and easy to set up and still give a big win, even though you might not be able to get all the nice features of something like Eclipse. But since you already know the Notepad++ it wouldn't require learning an entirely new tool.
Some plugins that I have found useful
Function List
Light Explorer
XBrackets Lite
There are probably a lot more that can be useful to you.
Notepad++ also got some built in auto-completion functionality that can be enabled in the settings.
Have you evaluated Eclipse XTEXT ?
What is Xtext?
Xtext is a framework for development of programming languages and domain specific languages.
The only IDE I have used for the last few years is Eclipse. There are lots of other IDEs available, also notable and popular is Netbeans. There are many others. It's important to note that all IDEs have their fans, but I can only speak to Eclipse.
Eclipse is a platform, which means it is an application on which you can build other applications. Eclipse provides a framework which you can customize and extend to produce a working application. It takes care of the user interface, preferences storage, modularisation using OSGi, and lots of other things.
Eclipse has facilities to support what you're looking for:
Syntax highlighting in the editor.
The Outline View provides function and variable listing in a tree
Autocompletion and Suggestions (activated by hitting ctrl-space)
Code Templates to fill out files and procedures etc.
The disadvantage is that customising and extending Eclipse to do what you want isn't trivial. Having written a language debugger for Eclipse, I can tell you that leveraging Eclipse's platform helped enormously, but there's a learning curve. You'd essentially have to be coming up with a new set of plugins to provide your highlighting, outlining, autocomplete suggestions and templates (I'm not sure if template support is built into the platform or not).
So I would say, unless you can find some sort of extensible editor for Eclipse - I know Aptana is extensible for tag-based markup - you are probably as well staying with your existing tooling.
Do explore the other IDEs though - I've heard good things about IDEA as well as Netbeans. :)
Good luck!
I can recommend SynWrite editor. Good support for external languages, fully customizable. (Editor of new lexers is there)
I'm trying to create several JSPs, and I was told that what most people do, is open notepad and hardcode the whole thing in. I come from the origins of C#, so that option is somewhat foreign to me :)
I did try to do several complex components by hand in Java. It took quite a bit of time (mostly with arrangements) but I was able to do it.
My question is, will I be able to create JSPs inside of Eclipse and will all the UI components that I will implement be there as I positioned them?
I'm asking because I found an Eclipse plugin (http://code.google.com/javadevtools/download-wbpro.html) that allows me to drag and drop components (C# style :D) and I needed to know if it is worth downloading, because if I still have to hardcode the JSP's UI in, the download time will be a waste (slow speed here).
Create a jsp page and right click on the editor and go to open with.
Select Web Page Editor and you will have the design view opened.
On the top right corner you will have an arrow. Click on the arrow and you will have elements to drag and drop on the editor.
I think almost nobody uses notepad to create JSP's. The editing is done in text mode in IDE's or comparable tools.
I agree with #BalusC, JSP's don't have good support for drag and drop development (like Visual Studio), although there tools like Dreamweaver which had some support to create the HTML structure in a WYSYWYG environment. I would not recommend these kind of tools for JSP but it's your choice.
The plugin you mention is not for JSP's and any of the alternatives it does support won't be quick to learn.
As #BalusCmentions, JSF's is an alternative for which there are some visual editors. You might want to look into that but you'd need to do some research as JSF is an standard and there are several implementations and related tools around. There are plugins for JSF support in Eclipse.
All in all I think you need to read further on Java web development and the alternatives that exist.
I need to add some functionality to eclipse text editors. The goal is to get a Graphics Context or add a SWT Canvas to any and all Eclipse AbstractTextEditors and package these modifications within a plug-in (so by installing the plugin I provide, the editor modification will work for the Java Editor, XML Editor, plain text editor, etc.). Are there any extension points that would suffice for this purpose, or is my best bet with a fragment? Any help is appreciated.
I would recommend looking at the source code for AbstractTextEditor to see if an extension point exists for this purpose. If an extension point exists, it will be evident in that class source.
I would wager that such extension point does not exist. You are left with opening an enhancement request and in the meantime patching the plugin containing AbstractTextEditor plugin to alter the source of that file. A fragment isn't going to do the trick. Another alternative to consider is to learn and apply a bytecode weaving framework such as AspectJ (http://eclipse.org/ajdt/).