Browse Prior Art Database

A Context-Sensitive Drag Drop Protocol for Visual Code Generation

IP.com Disclosure Number: IPCOM000104248D
Original Publication Date: 1993-Mar-01
Included in the Prior Art Database: 2005-Mar-18
Document File: 1 page(s) / 38K

Publishing Venue

IBM

Related People

Li, SG: AUTHOR [+2]

Abstract

This disclosure describes a context-sensitive approach to generating code via the drag-drop of visual objects provided in a sample object pallet. When an object pallet of sample objects is provided, the user can drag an object from the pallet and drop it on a specific target location. The semantics of this drag-drop operation are determined by the current context as described below:

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 68% of the total text.

A Context-Sensitive Drag Drop Protocol for Visual Code Generation

      This disclosure describes a context-sensitive approach to
generating code via the drag-drop of visual objects provided in a
sample object pallet.  When an object pallet of sample objects is
provided, the user can drag an object from the pallet and drop it on
a specific target location.  The semantics of this drag-drop
operation are determined by the current context as described below:

1.  When the object icon is dragged into a text (or source code)
    window for code editing, the Source Code Window is in an edit
    mode with source code lines displayed.  The user can move the
    object icon in the Source Code Window and:

    o   if the current position is within a code line, dropping the
        icon will replace the code in the code line by the source
        code represented by the icon;
    o   if the current position is between two code lines, or within
        an enclosing language expression (e.g. []), dropping the icon
        will insert the code represented by the icon into the
        corresponding position;
    o   if the user intends to replace multiple lines of code in the
        Source Code Window, the operation will be:

        -   (i)    dragging the icon to the start of the code to be
            replaced;

        -   (ii)   holding down a designated key (e.g. Shift);

    ...