--- RCPTT testcase ---
Format-Version: 1.0
Context-Type: org.eclipse.rcptt.ctx.ecl
Element-Name: AddOptimizerToMyWorkflow
Element-Type: context
Element-Version: 2.0
Id: _eiJlUDx6EeaeH4-rLFMbKA
Runtime-Version: 2.0.2.201511100828
Save-Time: 6/27/16 5:19 PM

------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description

Make sure a "MyWorkflow" workflow exists.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998
Content-Type: text/ecl
Entry-Name: .ecl.context

with [get-tab-folder] {
    double-click
    get-tab-item "MyWorkflow.wf" | click
}
with [get-editor "MyWorkflow.wf"] {
    with [get-palette] {
        with [get-palette-entry Optimizer] {
            mouse-move 45 6 button1 -height 23 -width 125
            mouse-press 45 6 button1 -height 23 -width 125
            get-figure 0 | drag-start 45 6
        }
    }
    with [get-diagram -index 1 | get-edit-part -className WorkflowPart] {
        drag-enter 1725 464 -detail move
        drag-over 50 50 -detail copy
        drag-exit
        drag-accept 50 50 -detail copy
    }
    get-palette | drag-set-data
    get-diagram -index 1 | get-edit-part -className WorkflowPart | drop 50 50 -detail copy
    get-palette | drag-end -detail move
}
with [get-tab-folder] {
    double-click
    get-tab-item "*MyWorkflow.wf" | click
}
get-button "Save (M1+S)" | click
------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998--
