Edit GUI with WindowBuilder - eclipse

I have to work on a project, where GUI is already given. I need to edit it, is there any way to open the Design view with WindowBuilder of this GUI?
I'm working on Eclipse and use WindowBuilder as plugin.
Plugin doesn't recognize it and can't parse automatically.
Any suggestions?

I think we cannot edit an existing GUI made without using websitebuilder plugin as it is not saved with the meta associated with files made using websitebuilder.
You can however create a new file with new GUI and copy code to previous file.

Related

Eclipse Plugin to Invoke a GUI

I understand the process of creating Eclipse plugins and adding buttons or menu items to Eclipse.
I would like to know how to create an Eclipse Plugin which should add a button to the eclipse menu and that button must invoke a GUI. How do I proceed with that?
The GUI will be a form where the user needs to select a bunch of options. How do I create this GUI form within a custom Eclipse plugin??
There's plenty of information already out there as long as you search using the correct names. Start with a simple plug-in then work your way up to creating Wizards.

How to debug Eclipse source code

I am having tough time to figure out debugging UI parts of Eclipse. I couldn't find any information on google (or) Eclipse web site.
All I wanted to do is to find out the code that gets executed when we double-click a file in project explorer to open the file in Editor.
I tried to bring up Eclipse source code from Plug-ins view -> right click on the plugins -> import as Source Project. But, I am unsure what are all the components that constitutes to the UI part. I get some weird errors when I try to import everything that's found in plug-ins view.
Where can I find the information related to debugging Eclipse source code?
Instead of using Plug-ins->Import as Source Project, I would recommend opening the Plug-ins view, selecting all plug-ins, right click, and Add to Java Search.
Then you can use Open Type Ctrl-Shift-t to search for class names and the source will be attached so you can read it, set breakpoints, and debug.
In your case, I think you want to investigate IWorkbench, IWorkbenchWindow, and IWorkbenchPage. The openEditor(*) methods on IWorkbenchPage will be of particular interest.
You may also want to take a look at the org.eclipse.ui.editors and org.eclipse.core.contenttype.contentTypes extension points.

Need simple PDF viewer for Eclipse

I am looking for a way to view PDFs within Eclipse (Juno).
I just need to quickly viewthe PDF, and do not need the capability to edit, search, or anything beyond viewing.
I have tried a few plugins, but they all switch to a new perspective when PDFs are opened.
I would try Pdf4Eclipse: http://borisvl.github.com/Pdf4Eclipse/ It was suggested next to the texlipse environment that already has its new perspective, so I think, this would not switch.
Try PDF viewer nice and simple, can be downloaded / installed from following eclipse marketplace website.
http://marketplace.eclipse.org/content/pdf-viewer#.Us-ZfvQeo0E

Suppress checking for changes on file system in Eclipse RCP

Okay, I guess this question is too difficult, but it's worth a try.
I have an eclipse RCP application that edits HTML-files. I deal with the content of the files only in a W3C-Dom representation. There is some stuff that I can not do with that, so I the program edits each file each time after it is saved (save, save as). Of course, the file is then out of synch with the file system, and the next time I touch it, eclipse complains:
"The file has been changed on the file system. Do you want to replace the editor contents with these changes? (Yes/No)" I do not want to load the changes into the editor ("No")
Maybe there is a way to tell Eclipse programmatically to not check that file for changes, or to configure it to not check for changes on any file?
edit: Everything has to be done either programatically or by editing some XML files. I can not expect the user to do anything;-)
I find your question confusing.
I'm assuming you have access to the source code of the RCP application.
If you modify a file outside of Eclipse, Eclipse will respond with the message you mentioned when you want to edit the file inside of Eclipse. This is to protect you.
If you want Eclipse to stop responding with the message, you have to refresh any module you edit and save outside of Eclipse. Right click on the module name, and left click on Refresh or press F5.
Inside the RCP application, you can call the refreshLocal method of IResource in org.eclipse.core.resources to do the refresh.

Opening a temporary buffer / scratchpad in Netbeans?

I often have to open a secondary editor outside of Netbeans in order to work on temporary bits of text outside of my project files. Is there a way to create temporary files in Netbeans without adding them to a project?
File -> New expects every file to be part of a project.
I know this has already been answered successfully, but there is now a proper Netbeans plugin for this requirement: http://code.google.com/p/netbeans-scratchpad-plugin/ It works nicely for me and allows multiple scratchpads which can be handy.
Also note that the Copy/Paste History plugin which is available by default (with NB7 at least) is handy for this too.
HTH,
JD
By default, there is no such feature yet (I'm using 6.5).
You could include a folder in the Favorites window, and right click > New > Empty File from the folder, it won't be part of the project.