Having fun with detached views!

9 Comments
  • Min Idzelis
    Posted at 2:22 am, April 26, 2009

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

  • Posted at 8:20 am, April 26, 2009

    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

  • Posted at 10:23 pm, April 26, 2009

    @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.

  • Min Idzelis
    Posted at 4:43 pm, April 27, 2009

    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.

  • Posted at 6:52 pm, April 28, 2009

    @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.

  • Min Idzelis
    Posted at 8:04 pm, April 28, 2009
  • AEHP
    Posted at 11:06 am, June 23, 2010

    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,

  • AEHP
    Posted at 9:40 am, August 27, 2010

    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