Having fun with detached views!

Yesterday, I had fun investigating how to open “detached” views progammatically.

Click to watch:

detached views Having fun with detached views!
http://www.screencast.com/t/5ku89HjBNs

You can find this on Bug #270212, where we are discussing how use this in Eclipse Riena.

9 Responses to “Having fun with detached views!”

  1. Min Idzelis says:

    Now, if Eclipse detached views behaved like the tabs did in Google Chrome, that would be AWESOME!

  2. ekke says:

    elias,
    its really great that you investigated into this -
    and from the discussions on Bug 270212 it seems that there’s a realistic chance,
    that I can get this for Riena.
    Then I can use Riena UI and Navigation in my Enterprise Application for Rich Clients
    (http://open-erp-ware.org coming soon)
    I like the Riena UI not confusing business users with the complexitiy of IDE.
    But in some cases I need more then one view (for dashboards, comfortable Drag’n'Drop etc) -
    and using detached Views extends Riena UI without adding complexitiy to the users.
    would be really great if this could be done in Riena.
    lets see what happens with Bug 270212 at the moment I’m glad to see the progress
    since our discussions art eclipsecon :-)
    ekke

  3. Elias says:

    @Min: what’s missing from your point of view? As far as I know, you can drag the detached view back into the main window already (at least when dragging the view tab).

    @Ekke: thanks for the encouraging comments.

  4. Min Idzelis says:

    I think it’s just the drag feedback. While detached, if you start dragging the view, the detached window will disappear, and the drag feedback will be a shadow copy of the contents of the view (without the trim). Then if you start positioning the view into the main window, instead of just a box, you’ll give an insertion preview what would happen if you completed the drag at the moment in time. This will show view already in place (including view contents.) Just to kick it home and make it super polished, chrome animates the tab re-layout.

    Eclipse already supports shadow copy from trees. The tree item appears as a shadow drag feedback. This would just applies it to views as well.

  5. Elias says:

    @Min: thanks, I get it. Chrome shows a small thumbnail of the tab when dragging. It looks really cool. I suggest opening a bug against Platform UI, since the drag feedback is not something I could change in Riena.

  6. AEHP says:

    Hi everybody,

    I want to ask you how do I detect the events when I move a view to out the workbenchwindows using the mouse?

    My context is the following:
    I have an application eclipse RCP that it has many view into one perspective. I must move out a view using the mouse, the view must be located out of the main windows of the application. I can use the mouse for moving the view out the windows but I must know what is the event that it calls. If I know the events, I will write my code java for changing the behaviors of my application.

    I need to know what are the events that it call when I move out a view using the mouse.

    I hope you can help me,

    Thank a lot,

  7. @AEHP: I wrote a short blog to answer your question: “How to detect that a view was detached“.

    Cheers,
    Elias.

  8. AEHP says:

    Thanks very very very much Elias,

    I had read your answer the same day that you wrote the blog.
    With your solution I had can to advance in my project.

    Now, I need your help, please:

    I was developed an application using Eclipse RCP that allows to create client’s applications with the integration between swt and awt, but I had one problem when I run my application, the message is the following:

    27 août 2010 08:02:04 sun.awt.X11.XToolkit processException
    ATTENTION: Exception on Toolkit thread
    java.lang.StackOverflowError
    at sun.awt.X11.XlibWrapper.CallErrorHandler(Native Method)
    at sun.awt.X11.XToolkit.SAVED_ERROR_HANDLER(XToolkit.java:125)
    at sun.awt.X11.XToolkit$1.handleError(XToolkit.java:153)
    at sun.awt.X11.XToolkit.GlobalErrorHandler(XToolkit.java:134)

    I had read a lot of comments in the web about this problem but I did not find the solution.

    Would you help me, please?

    AEHP

9 responses so far

Written by . Published in Categories: EclipseSource News, Planet Eclipse

Author:
Published:
Apr 25th, 2009
Follow:

Twitter GitHub