Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » RCPTT + GEF: scrolling does not work
RCPTT + GEF: scrolling does not work [message #1758795] Mon, 03 April 2017 08:56
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 307
Registered: July 2009
Location: Germany
Senior Member
Hi,

I am trying to start testing a GEF editor. My GEF editor uses a ScalableFreeformRootEditPart and my origin point is in the middle of the canvas (in other words: my figures can have negative coordinates).

Although scolling, selection, and revealing edit parts in my editor works fine in the actual product, testing does not work as expected.

The RCPTT recorder records this script:

with [get-editor "test.mygef" | get-diagram] {
    with [get-edit-part -className RootEditPart | get-edit-part -className SFMappingEditPart | get-edit-part 
        -className AreaEditPart -index 3] {
        mouse-move 12380 9892 button1 -height 28000 -width 25000
        mouse-press 12380 9892 button1 -height 28000 -width 25000
        mouse-release 12380 9892 button1 524288 -height 28000 -width 25000
        mouse-hover 12380 9892 -height 28000 -width 25000
    }
    mouse-hover 321 320 -height 565 -width 1035
    mouse-move 321 320 button1 -height 565 -width 1035
    mouse-press 321 320 button1 -height 565 -width 1035
    mouse-move 322 320 -mask 524288 -height 565 -width 1035
    with [get-edit-part -className RootEditPart] {
        mouse-drag 12381 9750 button1 524288 -height 43721 -width 80091
        mouse-release 12381 9750 button1 524288 -height 43721 -width 80091
        get-edit-part -className SFMappingEditPart | get-edit-part -className AreaEditPart -index 3 
            | mouse-hover 24916 9273 -height 28000 -width 25000
    }
}


When I replay this script it does not work correctly. I.e., it *should* select an edit part (a polygon) in the negative coordinate area and move a corner point. It acutally *does* scroll to/reveal a part of the canvas.

When I use the debugger to step through the script, I can see that already the first instruction
mouse-move 12380 9892 button1 -height 28000 -width 25000

implicitly scrolls the canvas so that the origin point lands in the top left corner.

Can anyone confirm that RCPTT+GEF has a problem with negative coordinate systems?

Best,
Stefan
Previous Topic:How to wait for workspace build
Next Topic:RCPTT Developer Documentation
Goto Forum:
  


Current Time: Tue Apr 23 11:44:10 GMT 2024

Powered by FUDForum. Page generated in 0.03390 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top