A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
The present invention disclosure relates to an extensible interactive development environment.
Typical interactive applications provide for operating on a fixed set of file types where the file contains a single type of content. Increasingly, applications require the use of files that contain many different kinds of interleaved content or code in different programming languages. Moreover, the frequency with which new types of content and programming languages become available is increasing rapidly. These factors require a new kind of interactive application that can be dynamically configured.
The invention is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It can be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In one embodiment, a generic interactive application (GIA) can be dynamically configured and functionally extended by defining it in terms of interchangeable building blocks called extensions. By way of a non-limiting example, extensions can provide new graphical user interface (GUI) components, new project/file types, and new application functionality. An example of a GIA is WebLogic® Workshop, an interactive software development environment available from BEA Systems, Inc. of San Jose, Calif.
In one embodiment, a GIA 204 includes a user interface (UI) 200 and a set of services 206. The GIA and its services can make use of and extend the functionality of, the UI. By way of a non-limiting example, the UI can include one or more of the following: 1) a graphical user interface (GUI) (e.g., rendered with Hypertext Markup Language); 2) an ability to respond to sounds and/or voice commands; 3) an ability to respond to input from a remote control device (e.g., a cellular telephone, a PDA, or other suitable remote control); 4) an ability to respond to gestures (e.g., facial and otherwise); 5) an ability to respond to commands from a process on the same or another computing device; and 6) an ability to respond to input from a computer mouse and/or keyboard. This disclosure is not limited to any particular UI. Those of skill in the art will recognize that many other UI embodiments are possible and fully within the scope and spirit of this disclosure.
Each service can be associated with an extension 208. An extension can expose and consume the services of other extensions. In one embodiment, a service is a public interface that has an implementation and provides access to functionality in an extension. An extension may declare services that it implements. For instance, a debugger extension can define a debugger service that, among other things, provides a method for setting a breakpoint in a program source file. Services can be consumed by an extension's classes and can be registered with the system using tags in the extensions.xml file.
In one embodiment, at startup a GIA run-time component can read all extension.xml files, batch them together and ensure that the services requested by each are available. Extensions may define handlers for an <extension-xml> tag found in the extension.xml file. Handlers are associated with a particular id attribute. In one embodiment, an extension.xml file can be scanned for code fragments contained within a <extension-xml> tag and those fragments can be passed to handlers defined for the particular id attribute at run-time. This mechanism allows extensions to create extendable infrastructure in which other extensions can participate. In one embodiment, a handler class can be instantiated by the GIA and is responsible for parsing XML contained in a fragment.
In one embodiment, the root element for the XML in the extension.xml file is <extension-definition>. An <extension-definition> element may have one or more <extension-xml> elements as children, each describing a different extension. The particular type of extension can be described by setting the value of the <extension-xml> element's id attribute. Exemplary values for the id attribute are given in Table 1.
By way of a non-limiting example, the following XML describes an extension that adds three GUI panels for setting properties in a GIA: one for a Project Properties dialog, one for an Application (workspace) Properties dialog, and one for a GIA Properties dialog:
Multiple <extension-xml> elements may occur as children of the <extension-definition> element, which is the root element of an extension.xml file.
In one embodiment, the <action-ui> element can specify UI details for actions in a GIA. In general, this element can be used for defining new UI elements (e.g., menu and popup commands, toolbar buttons, etc.) associated with actions. By way of a non-limiting example:
In one embodiment, a <menu> element can be used to specify a UI menu item. Attributes for this element are provided in Table 3. By way of a non-limiting example:
In one embodiment, <action-group> adds a new action group to a ‘View’ menu. Action groups (and all other UI elements) are sorted with lowest priority numbers first. An action group is simply a place to put actions. If no actions are put in the action group, then it will not be visible in the UI. A separator can be shown between each visible command group. In one embodiment, a default priority can be provided. In another embodiment, a priority can be specified.
In one embodiment, a <popup> element specifies a UI popup window or menu. The <popup> element's attributes are provided in Table 3.
In one embodiment, a <toolbar> element can specify a UI toolbar or toolbar button. Its attributes are specified in Table 4.
In one embodiment, an <action-set> element can specify actions in an extension. It may occur multiple times as a child of <extension-xml>. Specific actions, such as a menu or popup command, or a toolbar button, are described by each <action> child element.
In one embodiment, an <action> element can specify a UI action, such as a menu or popup command, or a toolbar button. Attributes for this element are provided in Table 6.
In one embodiment, a <location> element specifies a location in a GIA user interface (such as an existing menu group) where an action can be placed. This element is provided as a convenience for simple cases. In general, a programmer can define new user interface for actions with <action-ui> elements.
In one embodiment, a <view> element allows the specification of new debugger variable view. The following non-limiting example uses the XmlExpressionView view implementation for a view of a string variable:
In one embodiment, a <document-handler> element describes a document extension, with which a programmer can add to the GIA to support new document types. New document types may require a specific user interface (such as an icon) and behavior. The extension.xml file for a document extension can specify the class to use for handling the new type of document, the document's file extension, and so on.
In one embodiment, the <document-handler> element may have one or more <file-extension> child elements. These can be used to specify the extension of a file for which this document handler may be used. Attributes are discussed in Table 9.
In one embodiment, a programmer will most often implement “highest” priority handlers, but a programmer may also have “low” and “medium” priority handlers. For example, the extension .java can have a high priority handler that handles JAVA files. However, the extension .jws is also a JAVA file. In the absence of a “highest” priority handler for it (in other words, the web services extension), the JAVA file handler can be able to also handle JWS files. Therefore, the JAVA file handler may declare itself to be a “low” priority handler for files with a jws extension.
In one embodiment, a <create-template> element can specify information used in a right-click UI menu and/or a New File dialog when creating a new file of this type.
In one embodiment, a <description> element can be used to specify text that can appear for this file type in the New File dialog.
In one embodiment, an <file-encoding> element can be used to describe a file encoding extension. A programmer can use a file encoding extension to specify how a file can be handled when parsing. By way of a non-limiting example, if a programmer wanted files with an .htm extension to be treated by the GIA in the same way as files with an .html extension, the extension might look as follows:
In one embodiment, a <frame-view-set> can be used to specify one or more UI frame views. A programmer can use the <frame-view> element to define certain appearance and behavior properties for the view in the GIA.
In one embodiment, a <frame-view> element can describe an extension that adds a dockable frame window to the GIA UI. The extension can provide basic information about the frame, including its label in the UI, its icon in menus, and a class that implements the UI and behavior for the frame. In addition, a programmer can use an <application-layout> element to specify that frames can be visible in specific positions at startup.
In one embodiment, an <application-layout> element can specify parameters for frame layouts, or descriptors that specify startup positions for frame views. This element can be used to create multiple frame views in the GIA UI.
In one embodiment, a <frame-layout> element can specify the parameters of a layout, or the specific positions of one or more frame views at GIA startup.
In one embodiment, a <frame-container> element can specify layout parameters for a group of frame view windows. This element can be used when there are two or more frame views that can appear in specific positions relative to each other at startup.
In one embodiment, a <frame-view-ref> element can specify a frame view to appear in a container. Within the <frame-container> element, which defines layout parameters, the <frame-view-ref> element specifies details about the frame itself.
In one embodiment, the <help-root> describes a help extension through which a programmer can specify paths that can be added to the locations searched by the GIA when context-sensitive help is requested. By way of a non-limiting example, when a user presses an F1 key, a context-sensitive help engine can search for a topic (e.g., an HTML file) that corresponds to the user's current context (such as Source View, with the cursor positioned in a class variable name).
In one embodiment, a <GIA-preferences> element can describe a preferences extension, which can add one or more panels to the GIA properties dialogs. These dialogs can include GIA Properties, Project Properties, and Application Properties (also known as “workspace properties”). For each of these dialogs, a programmer can specify one or more panels with the <panel> child element.
In one embodiment, a <workspace-preferences> element can specify one or more panels that can be included in the Application Properties dialog.
In one embodiment, a <project-preferences> element can specify one or more GUI panels that can be included in the Project Properties dialog.
In one embodiment, a <panel> element can specify a panel that can appear in a properties dialog.
In one embodiment, a <project-type> element can specify details related to the project's appearance in the GIA and about a project type file name extension.
In one embodiment, an <attribute> element can specify an attribute supported by a project type. In one embodiment, project type attributes can correspond to predefined behavior in the GIA. By way of a non-limiting example, specifying “true” for the warnOnXSDAdd attribute tells the GIA that a warning message can be displayed if a GIA user tries to add an XSD file to the project (the warning states that the XSD will not be compiled unless put into a schema project).
In one embodiment, a <driver> element can specify driver(s) to load when a project of this type is loaded. By way of a non-limiting example, a programmer might want to implement a driver that checks for files added to the project's file system. When the user adds a project of this type to an application, the GIA “attaches” each of the specified drivers to it, so that the driver code is running while the user is working in the application. The project itself need not have focus in order for drivers to be active.
In one embodiment, a template defines a set of files and/or code to be used to check the contents of or add content to a GIA project. In one embodiment and by way of a non-limiting illustration, the GIA can load its set of templates by finding zip files with a template.xml file at its root located in a ‘templates’ directory.
In one embodiment, a template.xml file may contain any number of project or application template definitions. A template definition may optionally include display information indicating where and how the template will be displayed to the user. All templates, regardless of whether they contain display information, can be accessed programmatically by extension writers, or be extended or referenced by other template definitions.
In one embodiment, a <template-definition> element is the top-level element for project templates. It can contain any number of <project-template> and <application-template> elements.
In one embodiment, a <project-template> element can be used to define a set of content for populating a single new or existing project of a specific project type. A project template can also use a custom template processor class located in an extension JAR to call a GIA extension API, examine and update configuration files, query the user for input, or control the addition of content to a source directory. In one embodiment, project template definitions may be displayed in a New Project Dialog, Import Project Dialog, or in an application tree project-context menu under Install. They may also be extended by other project templates and referenced by application templates.
In one embodiment, a project template can be used by an template processor class to examine, configure or populate a project instance. In one embodiment, a template processor can have two methods: check( ) which determines if the project conforms to the template, and load( ) which configures or adds content to the project. A custom template processor implementation may be specified in the template definition; otherwise the default Workshop implementation will be used.
In one embodiment, a <display> element can display options for a New Project dialog.
In one embodiment, a <content> element can be used to specify a menu item.
In one embodiment, an <application-template> element can be used to define a set of content for populating a new or existing application. An application template can also use a custom template processor class located in an extension jar to call an GIA extension API, examine and update configuration files, query a user for input, or control the addition of content to the application directory. By way of a non-limiting example, application template definitions may be displayed in a New Application Dialog, or in a application tree root context menu under Install. They may also be extended by other application templates and referenced by application templates.
Application templates may also contain any number of content elements, however these content members may only contain application-level data: data in the Libraries, Modules folders, etc. Project content can be specified in a project template. Project templates may be referenced, or they may be completely defined inside the application template. Project templates defined inside the application template will not appear in the New Project and Add Project dialog and may only be used when creating this application.
In one embodiment, a <project-template-ref> element can be used to reference to an externally defined project template. The referenced project template may be defined in the current template ZIP file, or any other template ZIP file in the /template directory. The project type id and template id are used to find the referenced project template. The referenced project template will be used to create a project with the name given and the content defined by the project template.
The following is an annotated example of a template.xml file.
One embodiment may be implemented using a conventional general purpose or a specialized digital computer or microprocessor(s) programmed according to the teachings of the present disclosure, as will be apparent to those skilled in the computer art. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art. The invention may also be implemented by the preparation of integrated circuits or by interconnecting an appropriate network of conventional component circuits, as will be readily apparent to those skilled in the art.
One embodiment includes a computer program product which is a storage medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the features presented herein. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Stored on any one of the computer readable medium (media), the present invention includes software for controlling both the hardware of the general purpose/specialized computer or microprocessor, and for enabling the computer or microprocessor to interact with a human user or other mechanism utilizing the results of the present invention. Such software may include, but is not limited to, device drivers, operating systems, execution environments/containers, and applications.
The foregoing description of the preferred embodiments of the present invention have been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to the practitioner skilled in the art. Embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention, the various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
This application claims priority from the following application, which is hereby incorporated by reference in its entirety: EXTENSIBLE INTERACTIVE SOFTWARE DEVELOPMENT ENVIRONMENT, U.S. Application No. 60/451,340, Inventors: Ross Bunker et al., filed on Feb. 28, 2003. (Attorney's Docket No. BEAS-1437US0) This application is related to the following co-pending applications which are each hereby incorporated by reference in their entirety: SYSTEM AND METHOD FOR MULTI-LANGUAGE EXTENSIBLE COMPILER FRAMEWORK, U.S. application Ser. No. ______, Inventors: Kevin Zatloukal, filed on ______. (Attorney's Docket No. BEAS-1396US1) SYSTEMS AND METHODS FOR MULTI-LANGUAGE DEBUGGING, U.S. Application No. 60/450,014, Inventors: William Pugh et al., filed on Feb. 26, 2003. (Attorney's Docket No. BEAS-1411US0) SYSTEMS AND METHODS FOR MULTI-VIEW DEBUGGING ENVIRONMENT, U.S. Application No. 60/451,368, Inventors: Josh Eckels et al., filed on Mar. 1, 2003. (Attorney's Docket No. BEAS-1436US1) SYSTEMS AND METHODS FOR TYPE-INDEPENDENCE SOURCE CODE EDITING, U.S. Application No. 60/449,984, Inventors: Britt Piehler et al., filed on Feb. 26, 2003. (Attorney's Docket No. BEAS-1439US0) MULTI-THREADED MULTI-LANGUAGE COMPILER FRAMEWORK, U.S. Application No. 60/488,629, Inventors: Kevin Zatloukal, filed on Jul. 19, 2003. (Attorney's Docket No. BEAS-1470US0) ARBITRARY NESTING OF LANGUAGES, U.S. application Ser. No. ______, Inventors: ______, filed on ______. (Attorney's Docket No. BEAS-1471US0) METHOD OF USING THE SAME COMPILER AS A LANGUAGE ANALYZER AND AN OBJECT CODE PRODUCER, U.S. application Ser. No. ______, Inventors: ______, filed on ______. (Attorney's Docket No. BEAS-1472US0) LANGUAGE INDEPENDENT AUTO CORRECTION, U.S. application Ser. No. ______, Inventors: ______, filed on ______. (Attorney's Docket No. BEAS-1473US0)
Number | Date | Country | |
---|---|---|---|
60451340 | Feb 2003 | US |