SWT source code editor widget [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there any source code editor widget for SWT? I looked for a long time and nothing found... I saw that question: SWT Syntax highlighting widget, but I don't want to use raw StyledText widget - I need more than only syntax highlighting. I need also, for example, code completion.
I need this to give to the user ability to edit source in Python.

I "resolved" the problem.
I used the JFace's SourceViewer and other things found in Google, like for example simple syntax highlighting.

You can create an eclipse plugin for editing python files (including the outline view, and other things related to eclipse). Then you install it in an empty eclipse application (without the java editor), and the user can edit these kind of files.
A link for creating editors would be on vogella.com. I know there's another example on the Internet about editing xml files, but I can't find the link now.

I think you can take a look at how JavaEditor is implemented in *jdt*ui* plugin. org.eclipse.ui.texteditor.AbstractTextEditor is base class for most of the editors. Once you have the editor implemented, you just need to associate file extension with the editor.

Related

How to check the process of an action while pressing down a key debugging? (Java, Eclipse) [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
We are working on a Java program with a GUI and we are looking for a tool that shows us which parts of code are executed as we click on the buttons in the GUI. Any suggestions ? Thanks in advance
Eclipse with debug mode can do that, you just need to put break points in your listeners and click on the buttons.
It works out of the box with eclipse... a simple run Debug and it's done.
The simplest approach is to use print statements. If you require more sophistication, either use an IDE (e.g. Eclipse, NetBeans, and etc.) in debug mode, or some logging mechanism (e.g. log4j).
Personally, I use BlueJ debugger:
http://www.stfrank.com/debug-21.png
I use Swing Explorer

Is there an easy way to generate documentation for eclipse without disturbing the code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have to produce a report on all of my program's classes and methods and put it into a word document. Now, I really want to know if there is a software that will generate a text file documentation from my project files without inserting comments to source codes. I just want a list of all methods and classes in a text or ms word file, so that I can fill in the description on my own.
You can generate javadoc documentation just from uncommented source code. It will generate HTML, but there are probably converters to Word available.
However, I would strongly recommend that you add comments to your code instead. It's what Java programmers the world over expect; the documentation will show up in tooltips when you're writing new code calling into your current API; the tooling is geared up for it. Basically, try to work with the language conventions instead of fighting them.
EDIT: It sounds like you can use a doclet to generate the Word document for you. The MIF Doclet may be a good starting point, or PDFDoclet.
Generate the documentation using javadoc and then convert it to the required format. Look for different options here: https://www.oracle.com/java/technologies/javase/javadoc-faq.html#print.
Hope it helps.
There is a Maven plugin, "maven-site-plugin" that is useful for producing editable HTML docs from a Java project.

Looking for a plug in for eclipse to draw state charts [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am using Java in eclipse, It would be wonderful if I could find a plug in which can draw state chart from a XML format.
I don't know about plug-ins for Eclipse, but I'd recommend AT&T's graphviz as a terrific tool for easily rendering states and transitions. The input format is not XML; however, it'd be trivial to read an XML file, generate the required format, and render it using graphviz. Laszlo Szathmary has a nice Java class that lets you do it right inside a Java class - very nice.
Check out Eclipse's Graphical Editing Framework(GEF). It should have everything you need. http://www.eclipse.org/gef/overview.html

What's a good Java, curses-like, library for terminal applications? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I would like to write a Java terminal application that does screen manipulation. Are there any good libraries out there that allow you to manipulate the screen like curses in the *nix/C world?
Minimal features I'm looking for are windowing and user input support.
In feature-speak, I'd like to have a region of the terminal where some data is regularly updated while (at the same time) the user can enter commands/text in some other part of the screen.
Lanterna
I found the Lanterna library recently. Haven't had the opportunity to use it yet but it looks like a more up-to-date alternative to the others.
There is Charva, which links to native code but has an api based on Swing.
The screenshots show lots of text windows, so that looks useful.
Haven't used it myself, but Java Curses Library sounds like what you want.
Here is a way to call the ncurses lib using JNI. I tested this and it works.
As of 2013, the closest I can find is Blacken.
Blacken is not a curses library per-se. It moves away from the terminal, and instead, renders it's own "console window." This has the disadvantage of not looking "console-like." Instead, you get full (arbitrary) colour support, and a curses-like API (in addition to their main API).
You can also set the font to Mono for fixed-width characters.

looking for Java GUI components / ideas for syntax highlighting [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm not committed to any particular GUI tookit or anything - just needs to be Java based. I want to do simple syntax highlighting ( XML and XQuery ) inside editable text areas.
My only candidate so far is Swing's JTextPane, as it supports seems to support the styling of text, but I have no idea how to implement it in this context.
If a particular toolkit has something like this out of the box, that would be awesome, but I'm open to doing this by hand if need be.
JSyntaxPane handles XML and can be extended
http://code.google.com/p/jsyntaxpane/wiki/Using
Or, it should be possible to extract the NetBeans editor, but that would probably be more work...
[edit] btw, I got the XML info from here... it doesn't seem to mention it on the google code pages...
Jide software has a Syntax Highligher component. It is still in beta, but I think it supposed XML. I haven't used it myself, so I don't know how well it will do what you want.
Why not check out Ostermiller's Syntax Highlighter.
Here's a simple code editor demo
It still uses JTextPane though.

Categories

Resources