I want to convert string xml to tree structure format using java code palette. I tried very hard to solve this.
But i didnt know how to write the code in java code palette.
Please share any one has solution for this.Plzzz help me..
You can write java code using eclipse. Create a jar once you implemented your logic in java. Place that jar under tibco/bw/lib. In TIBCO designer, using java method activity you should be able to access the jar and related method. If you need more details then please refer document (designer and BW). Let me know if steps I mentioned resolved your issue.
~Hems
Related
Does anybody knows a link or site that I could find this Java library?
The problem is there is a Java program that my employer needs me to fix a bug but the problem is that the person that was the author of the program is not anymore working with him so he needs me to fix it but the IDE is looking for a library that is javafx.mail.jar and so far as I was searching the web there were no answers of this kind of file type.
Can someone knows about this type? Thank you in advance
FYI: I'm new in Java so please be nice :)
I'm pretty sure1 you should be looking for the JAR file for javax.mail, not javafx.mail.
You can get the JAR file from Maven Central, from Oracle or from GitHub, depending on what version you need.
1 - The Oracle javafx product has nothing to do with email. Either you have misread something, or the code you are trying to fix is currently referring to something that doesn't exist ... and you need to fix that. The javafx package tree is reserved for the use of the javafx product line itself. 3rd party libraries should not define packages in that tree.
I have a task where we need to generate UML(or similar) from XML and will be able to edit text, property type and drag dependency row. But I can't find any Java lib or component wich will allow me to do such.
For example PlantText is a good lib but it does not allow to make edit.
If someone known such lib/compoment please share.
Thanks
EDIT:
Sorry, maybe I wasn't wrote clear. Actually, I need library which I can implement into my project, and after I will be able to generate UML from my project, then edit it and save into XML.
draw.io is very good site where you can create (not only) UML's and save them to XML file so in future you can edit it. The drawback is it is not automatic and must be drawn from scratch.
I have hosted my web-application on google appengine. I had to put up some java code on my website.So I am looking for a java parser for the website. Please suggest some.
Actually I wanted to put up a project that used C and Java so I am looking for a parser that can parse both the languages.Are there available parser or I will have to write my own ?
Edit : My sole purpose 'now' is code highlighting
If you just need code highlighting, there are tons of stuff out there. You could, for instance, use highlight.js, or even Google's own code prettifier.
At this moment, that is what I can get from your question, so until further clarification, I won't be able to give a more precise answer.
i have a project that has a JEditorPane in netbeans, at the moment i have this being populated with a chosen .java file. what i would like to happen do is when the java file is loaded the syntax is colored appropriately so that it is easy to read other then the current plain text it is now.
Does anybody have any ideas on how to do this as i am unable to find any good examples of this online?
EDIT: ANSWER
I got this to finally work, i added the JSyntaxPane jar file to my classpath (jsyntaxpane-0.9.5-b29.jar to be exact) then i added the following two lines of code to get it working for my JEditorPane.
jsyntaxpane.DefaultSyntaxKit.initKit();
JEditorPane.setContentType("text/java");
This can also be used on the following languages: JavaScript, Properties, Groovy, C, C++, XML, SQL, Ruby and Python... just by simply changing text/java to text/LANGUAGE_YOU_WANT in the above code
I would suggest to use RSyntaxTextArea (see http://fifesoft.com/rsyntaxtextarea/).
It's very easy to integrate and works great. The documentation contains an example, which shows how to integrate a RSyntaxtTextArea for Java-Syntax-Hightlighting:
http://fifesoft.com/rsyntaxtextarea/examples/example1.php
Has anyone got a working solution without some Java/COM-bridge? E.g. process the Email as a file (.msg) rather than locating the data that is referenced in the Clipboard?
Maybe this is a solution for your problem:
http://sourceforge.net/projects/javaoutlookdd/
It allows to handle outlook items like File objects during drag&drop.
I did make some headway on this sort of thing a few years back using Apache POI to extract the contents of an email from .msg files. I'm pretty sure they have a simple swing explorer / viewer that you can use to examine the structure within the compound document format, but I can't find it right now.
I was able to extract most information that I was interested in but was ultimately wanting to create a mime format version of the message and couldn't extract all the information I needed in a format I could use.
I assume that you've already ruled out the tools in "org.eclipse.swt.dnd" for some reason? There are some examples here on how to go about using them, in case you haven't. If what you really want to do is drag&drop, you're going to have to do some work with those tools. At that point, really the question becomes, what format is it in on the clipboard, vs in a file, and which is easier to integrate into your app.