How to programatically detach editor in Eclipse Juno? - java

In my RCP application, I am able to open an editor in Eclipse 4.2 (Juno), but I would like it to open in a separate window by default (that is, to be detached). I don't want to be forced to manually drag and drop it outside the main workbench window.
I wander around classes like IEditorPart, WorkbenchWindow, WorkbenchPage, IViewSite etc. but no luck so far.
Actually, it would be great to be able to embed editor into some dialog window from org.eclipse.jface.dialogs. But I don't think it's possible, as windows (as much as views) and Editors don't go well together.

try looking here
there is an example concerning views but I thik that it can be adapter to your needs

Related

How to make autoComplete text suggestion on Editor-IntelliJ plugin-Swing

I am started developing a plugin for IntelliJ platform and I am working with the Editor. So The problem is I have to make a popup when the user writes in an editor like the IntelliJ code completion works( when ctrl+space).
So I have an Editor inflated on a Jpanel. But I can't find any documentation on how to make popup while typing. But I have found some projects using ComboBoxes with Close, minimise maximise option within it. I don't want that.
I am a noob on this.
Thanks for your valuable time.

Eclipse Plugin Development: Extending default Java Editor/Text Hover

I've been trying develop my custom plugin for Eclipse, and basically I want to make is a "richer" version on the current TextHover. I don't know what widget(?) Eclipse uses to display the hovering text, but I want to use something different, like SWT Image or SWT Browser.
Most of the tutorials that I've read suggest that I have to implement my own Java Editor to do this, but I don't want the user to switch to my custom editor just for a simple feature (and I don't want to implement a whole editor).
Some Tests:
I've already created two Eclipse Plugin Projects. The first one is a extension for the JavaEditorTextHovers, and with this project I managed to show some custom Strings when hovering some random texts, but wasn't able to change the hover appearance. The second project was a editor plugin. With this last one I managed to get a Browser to appear when hovering a random text(this tutorial helped me), but again, this editor had nothing, no syntax coloring, no rules, etc., and for the previous reasons, I couldn't accept this has a solution.
Maybe if there was way to change the (or set a new) SourceViewerConfiguration of the current editor I could pass my custom SourceViewerConfiguration, but I'm not sure if this is possible.

Eclipse Juno WindowBuilder Palette is Empty

I'm using Eclipse 4.2 (Juno) for Java EE and just installed WindowBuilder plug-n. At this time I'm building Java SE Application with Swing components.
The Palette is completely empty (no widgets). Is it a sign of incomplete installation or have I (hopefully) missed something obvious?
I was able to select New -> Other -> WindowBuilder -> Swing Designer -> JPanel.
Not even sure what other information I need to provide.
Thank you in advance for your help.
EDIT:
I installed via Help -> Install new software Followed these instructions.
What throws me off is that in Eclipse Community Forum I found a post which answering a similar question states: "What you are seeing is the expected behaviour. Until you actually edit a UI class using WindowBuilder, those views will be empty.". I do not know how to interpret it.
UPDATE: Problem solved
When I created a new JFrame via Create new visual classes icon I finally got Design view as well as Palette full of components and normal Structure view.
The Palette view in Eclipse is tied to the currently active Editor. So if you don't have an Editor or you have selected and focused on the Palette view, it will be empty. So leave the palette view open, then create a JFrame java class. Then right-click the Java Class and make sure you are opening it in the WindowBuilder editor. Once the WindowBuilder visual editor is open, and you also have the Palette open, you should see the wigets populated there.
Check if pallet is open in view pannel (parallel to console, progress and all), if it is open close that, then pannel will appear automatically in windowsBuilder tool.

Explorer Panel in Java

does anyone know a free windows explorer type of project written in java?
Basically i just want to implement a simple windows explorer but dont want to start from scratch with all the drag and drops, icon arrangements and so on.
Thanks
See File Browser GUI.
You can explore common navigator framework for eclipse, it would use swt, jface, draw2d. It provides with drag and drop options.

Creating a "netbeans property" style dialog box

I've been trying to create a GUI using netbeans, that includes a dialog similar to Netbean's own "property dialog" that appears when designing. ie. a dialog that contains a table that can be expanded by tree nodes. Something like the dialog on this page, http://platform.netbeans.org/tutorials/nbm-property-editors.html
As far as I can understand, the page I linked to describes a custom editor I can set up for use within netbeans while designing - I'm just looking for a way to doing something similar for my actual application I'm writing. Is there an easy way to do this?
I came across this and have tried it but it doesn't quite work in the same way as the standard Netbeans dialog. weblogs.java.net/blog/timboudreau/archive/2008/06/egads_an_actual.html
Any tips greatly appreciated.
This will sound flip... but I am being serious.
The easiest way to do this is to write your app using the NetBeans RCP platform.
You may want to look at the Swing Application Framework, too.
There are a couple SAF samples integrated into NetBeans... You can read about them here: http://netbeans.org/kb/docs/java/gui-saf.html
I could not find a property editor dialog sample, though.
I found a couple other pointers, using this query: http://www.google.com/search?q=how+to+write+a+property+editor+dialog+in+swing
You could take a look into the l2fprod components
(source: l2fprod.com)

Categories

Resources