I am using JFormDesigner to develop a Swing application. However I can't seem to get the package to generate java code. I tried saving the form and also pressing the "Generate Java Code" button, but it is not working. Is there some setting that I need to put in place for this to work?
Here is an uppdate. The generated code file is in my workspace directory, but Eclipse is not refreshing the file. Also, I note that the icon next to the file name in the navigator view looks different than normal java files. So really, this seems to be a problem with Eclipse refreshing. And yes, I've tried manually refreshing. But it is not doing this. Why would that be?
Thanks,
Elliott
The code is there. But is collapsed. You need to click on the + sign next to the position in the module where the generated code should be and it appears.
Related
I am just starting off in Java and trying to follow buckythenewboston on you tube. I have java and eclipse neon both downloaded correctly. However, when I create a new project like he showed in the video, I click finish and nothing shows up, in the video it showed on the side there should be a like java symbol with the name of the project I created. Well nothing happens it is blank on my screen. I tried opening a file from the work space in my C drive and that doesn't work either as nothing shows up so I can create a class. I know there is a couple of forum questions with similar title but that is different I think as they can at least get code in where I can't. Any explanation as what is going on would be helpful. I also tried to go to file-import-existing project... but the existing project part isn't an option.
Thanks in advance.
go into your workspace directory and delete .metadata folder, then restart eclipse
Close all perspectives and open a new one, the one you like.
When I create new Project in Eclipse, it displays the Desktop Manager beside the project name by default. How can I get rid of it?
If I understand your problem correctly, you're seeing the file location next to the file name. It looks something like this, perhaps?
There are a handful of ways to get rid of the location tag, but the most correct one (the one Eclipse wants you to use) is for you to put the project in the default location.
That results in a project name having no location tag. It also helps Eclipse find your projects later.
A caveat: since I do not have a screenshot of your problem and I do not know which Eclipse version you are using, nor what compoents you've added, I might be thinking of the wrong tag. If so, please add those details and I'll continue trying to help.
I'm working with JavaFX and whenever I move a class to another package I have to update all my FXML files to point to the correct location of classes.
In Eclipse you get an option to apply refactoring changes to the XML files and even non-code text files. However Netbeans only makes changes in Java code and nothing else.
Is there a workaround for this problem?
In my RCP application is editor, almost like in Eclipse. Class editor extends from org.eclipse.ui.texteditor.AbstractTextEditor and it is added in extension in plugin.xml -> org.eclipse.ui.editors. I would like to do view which contains open in editor files. The question is, how do I get a list of all open files?
Screen shot:
I haven't tested it, but you should be able to get it starting from the PlatformUI class.
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences()
In your workspace the following file contains your workbench information:
.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
It is possible to delete it (or edit it but that requires some fiddling around I suppose) without breaking your workspace, the file gets regenerated by Eclipse. When you delete it all workbench related settings are lost (ie all editors are closed), but your projects of that workspace stay intact.
from that you can get the list of file..
So initially my goal is to modify MY copy of a network monitoring tool to add to its html an EXTRA option in the navigation menu so I can relocate to html.net for example when someone clicks that menu item. The tool is written in Java using struts and it took me 1 week fo searching throguh the files and folder to finally find the .class for one of the menu items named Dashboard
From the struts.config.xml I found that Dashboard.jsp is one of the menu's files....I am probably confusing you so please ignore anything that DOES confuse you...
Long story short its all in something called servlet which I am not familiar with...
So to modify the html thats in the .jsp file I have to change the .class because in the files or folders the source code isnt there so its all precompiled...I decompiled the class for Dashboard_jsp.class and got this: http://pastebin.com/UkspReDu
Now I just need help figuring out what this is because I have never worked with this before...I need to add an extra menu item or make it so when a user clicks on the Dashboard tab it relocates to html.net I dont know what line to modify here...I need help with that. Then I can recompile and replace old .class with new.