# US 2003/0233585 A1 · System and method for reducing errors during software development

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2003/0233585 A1
- Document ID: US20030233585A1
- Status: Published application
- Kind: A1
- Application number: 10/174,242
- Filed: 2002-06-17
- Published: 2003-12-18
- Earliest claimed: 2002-06-17
- Assignees: Microsoft Corporation
- Inventors: David A. Quick; Niall L. McDonnell; Michael J. Moroney; Hervey O. Wilson; Benjamin S. Wulfe
- Web page: https://patentgrep.com/patent/US20030233585A1

## CPC

- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Described is a system and method for modifying a user-interface by applying a policy that is defined by an external party. The policy modifies the user-interface based on a user's context within the user-interface and prevents the user from performing certain actions. For example, in a software development environment, the user-interface is a user-interface provided by the software development environment and the certain actions that are prevented include adding inappropriate code to an application being developed in the software development environment. The policy may cause the software development environment to disable a menu that is associated with the inappropriate code. The policy may also modify the software development environment in a manner such that the developer is provided with active guidance if undesirable code is added to the application. The active guidance includes text being displayed that explains a reason for preventing the undesirable code within the application.

## Claims

### Claim 1

A computer-implemented method for modifying a user-interface, comprising:
applying a policy that modifies a user-interface based on a user's context within the user-interface, the policy preventing the user from performing certain actions as determined by the policy.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the user-interface is associated with a software development environment and the certain actions includes adding inappropriate code to an application being developed in the software development environment, the inappropriate code being determined by the policy.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the policy modifies the software development environment by a user interface mechanism that is associated with the inappropriate code.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the user interface mechanism includes a menu that is disabled.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, wherein the policy modifies the software development environment in a manner such that the developer is provided with active guidance if undesirable code is added to the application.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the active guidance includes a window displaying text that explains a rule within the policy that is associated with the undesirable code.

### Claim 7 (depends on 3)

The computer-implemented method of claim 3, wherein the policy identifies a plurality of elements associated with the software development environment, identifies a plurality of rules, and define relationships between the plurality of elements and the plurality of rules.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein one of the plurality of rules includes a constraint on an IDE feature of the software development environment.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein the constraint has one of a plurality of scopes based on a-location of the constraint within the policy.

### Claim 10 (depends on 7)

The computer-implemented method of claim 7, wherein one of the plurality of rules includes a feature link that excludes an IDE feature from an element set associated with one of the plurality of elements.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein the policy includes one or more files.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, wherein the policy includes a document based on an extensible mark-up language.

### Claim 13

A computer-readable medium having computer-executable components with instructions for reducing errors during software development, comprising:
a development environment configured to provide a user-interface to a developer when developing code for an application;
one or more language projects, each language project configured to support an associated programming language; and
a policy application configured to intercept communication between the development environment and the one or more language projects and configured to modify the development environment based on a policy and a developer's context within the development environment.

### Claim 14 (depends on 13)

The computer-readable medium of claim 13, wherein the policy application is configured to intercept communication by performing a method comprising:
detecting a key that is assigned to a policied project when created, the policied project being responsible for managing code for the application;
converting the key into a project factory guid, the project factory guid being associed with a policy engine project factor;
delegating a creation call for a project to the policy engine project factory; and
aggregating the project so that calls to methods of the project pass through the policyapplication.

### Claim 15

A method for reducing errors during software development, the method comprising:
receiving an input from the software development environment;
passing the input to a programming development environment, the programming development environment being associated with a programming language;
upon receiving a response from the programming development environment, determining whether the input has a rule defined in the policy that applies when the input is received from a current context within the software development environment;
if so, modifying the response based on the policy; and
transmitting the modified response to the software development environment, the modified response affecting a user-interface of the software development environment.

### Claim 16 (depends on 15)

The method of claim 15, wherein the modified response affects the user-interface by disabling one of a menu, a toolbox item, and a property within a property browser.

### Claim 17 (depends on 15)

The method of claim 15, wherein the policy is defined in an XML-based document.

### Claim 18 (depends on 15)

The method of claim 15, wherein the modified response affects the user-interface by displaying text that explains a reason for disallowing an action associated with the input.

### Claim 19

A computer-readable medium encoded with a data structure, comprising:
a first field for identifying an element associated with a software development project; and
a second field for identifying a rule for manipulating a software development environment when the element is being selected within the software development environment, the software development project being developed using the software development environment.

### Claim 20 (depends on 19)

The computer-readable medium of claim 19, wherein the first field includes at least one sub-field for identifying a property associated with the element.

### Claim 21 (depends on 19)

The computer-readable medium of claim 19, further comprising a third field for grouping at least two of the first fields.

### Claim 22 (depends on 19)

The computer-readable medium of claim 19, wherein the rule disables a feature within the software development environment.

### Claim 23 (depends on 22)

The computer-readable medium of claim 22, wherein the feature includes one of a menu, a toolbox item, and a property within a property browser.

### Claim 24 (depends on 19)

The computer-readable medium of claim 19, wherein the rule includes a reason for disallowing the element being selected from being added to the software development project, the reason appearing within a window of the software development environment.

### Claim 25 (depends on 19)

The computer-readable medium of claim 19, wherein the data structure is in an XML-based format.

### Claim 26

A system for modifying a user-interface, comprising:
a processor,
a memory into which a plurality of instructions are loaded, the plurality of instructions performing a method comprising:
applying a policy that modifies a user-interface based on a user's context within the user-interface, the policy preventing the user from performing certain actions as determined by the policy.

### Claim 27 (depends on 26)

The system of claim 26, wherein the user-interface is associated with a software development environment and the certain actions includes adding inappropriate code to an application being developed in the software development environment, the inappropriate code being determined by the policy.

### Claim 28 (depends on 27)

The system of claim 27, wherein the policy modifies the software development environment by a user interface mechanism that is associated with the inappropriate code.

### Claim 29 (depends on 28)

The system of claim 28, wherein the user interface mechanism includes a menu that is disabled.

### Claim 30 (depends on 28)

The system of claim 28, wherein the policy modifies the software development environment in a manner such that the developer is provided with active guidance if undesirable code is added to the application.
