How to visualize workflow from Eclipse?
Is there an Eclipse IDE plugin that can generate workflow of Java code? ...
Is there an Eclipse IDE plugin that can generate workflow of Java code? ...
I'm in the middle of refactoring some code on my current project, and I'd like some input on if any design pattern exists for the following scenario. I have a class which executes some logic and returns an object containing the results of said logic; Let's call this the Result object. The state information contained in the Result objec...
I've gotten as far as this: private Properties logoUrls = new Properties(); logoUrls.load(new FileInputStream("channelLogos.properties")); where channelLogos.properties is in the same directory as my JSP. I get a FileNotFound exception. Where does my app actually think I mean by "channelLogos.properties", if not the same directory as ...
I wrote: Object result = (Object)client.execute("method",params); in java client. Actually, the result should be printed in string format. But I can only output the address of "Object result", how can I get the content? And I have tried String result = (String)client.execute("method",params); It says lang.until.Object can not cast ...
Hi everyone, I am writing a GWT app that involves interacting with an external document in an iframe. As a proof of concept, I am trying to attach a click handler to a button. The following works in javascript var iframe = document.getElementById("rawJSIFrame"); var doc = iframe.contentDocument; var body = doc.body; var button = doc.g...
Hi, could anyone tell me the difference between Terminal and non-terminal symbol in the case of Java? Does Terminal mean a Keyword and non-terminal any common string literal? ...
Say I have this code - public interface ParentInterface1 { public List<? extends ChildInterface1> getChildren(); public void setChildren(List<? extends ChildInterface1> children); } public interface ParentInterface2 { public List<? extends ChildInterface2> getChildren(); public void setChildren(List<? extends ChildInter...
I can get the unique id like className@2345 of my object by calling its toString() method, but after I overwrite the toString() method, how can I get that unique id? ...
is there a way to associate a custom file extension with my java program on windows? I have installAnywhere to create an installer. But I'm not sure how this can be done if it's possible. Every installer on window does this, but what if it's in Java. I imagine it would require registry modification by the installer... ...
Is it possible to use the javadocs documentation system for other languages. Since javadocs produces such a nice output it would be great if you could use it in other languages. If this isn't possible, what other documentation generators are used for the C++ language, preferably opensource. ...
Does anyone try to populate the data from Google Spreadsheet, and format them in Google Chart, and display it in somewhere of the blog? How to do it in a principled way? I know there are official API (e.g., Java) to retrieve data from Google Spreadsheet, but does it help? ...
Hi. I have an Axis (1.4) web service (running on Tomcat 6.0.20) that is working fine until I try to use any class from another project. I have my web service project and another project containing business logic. I have added the business logic project as a project dependency/reference in my web service project. package MyProject.serv...
I am working on a project (Java, Swing) in which i have to pop a frame on clicking a hyperlink. but the coding for the frame and all its components is done in a different class and that hyperlink exists in a different class. what shall i do to pop that frame on clicking of the hyperlink please tell. thanks. ...
I understand that JVMs can be managed using SNMP and JVMs come with support for JVM-MANAGEMENT-MIB. Is there a way to program/extend the SNMP AGENT functionality which is associated with a JVM? Is there a way to add support for any other proprietary/standard MIBs to the SNMP Agent on JVM, so that I can allow my applications running on ...
Hi there, can anyone provide me with an example of how to use th rich:orderingList control? I've gotten to the point where I'm able to display the data as I wanted but now I'd actually like to have the modified order propagated to server. I can't find anything on that subject. <rich:orderingList value="#{countryHandler.data}" var="coun...
At one of our customer installations we had thousands of occurrences of the same exception. After a lot of well logged stacktraces (9332) the occurrence of the exception is still logged, but without stacktrace. After restarting the java process, the same thing: This time we had 17858 stacktraces and then only the exception occurrence its...
I iterate through a tree structure to collect the paths of the leaf nodes. Which way do you prefer to collect the result of the operation: a) merge the results of the children and return this private Collection<String> extractPaths(final Element element, final IPath parentPath) { final IPath path = parentPath.append(element.getLabe...
Hi there, to execute JavaScript in Rhino one has to create an execution context for the script. The constructor of the Context class uses the JavaScript compliance level VERSION_DEFAULT. protected Context(ContextFactory factory) { if(factory == null) { throw new IllegalArgumentException("factory == null"); } this.fa...
Hi, we need to keep an eye on the pc clock from a Java program. For this, we schedule a Runnable using scheduleAtFixedRate() every 500 ms. We call System.currentTimeMillis() from this every time. If we see that the there is a bigger difference then 500 ms +- a certain allowed delta, then we assume the clock has changed (then we need to ...
For the problem at hand, see the title. A certain "calculation service" (cpu intensive) is served to the clients as follows: all client requests go to one machine that manages the queue and - when a server or cpu is free in the cluster - forwards the request to a java appserver. The appserver uses ejb for its workflow mangement and at on...