Skip to Main Content Skip to Search
Product Documentation

activate - Mark file, project, or build configuration as active

Syntax

IDE_Obj.activate('objectname','type')

IDEs

This function supports the following IDEs:

Description

Use the IDE_Obj.activate('objectname','type') method to make a project file or build configuration active in the MATLAB session.

When you make a project, file, or build configuration active, methods you invoke on the IDE handle object apply to that project, file, or build configuration.

Input Arguments

IDE_Obj

For IDE_Obj, enter the name of the IDE handle object you created using a constructor function.

objectname

For objectname, enter the name of the project file or build configuration to make active.

For project files, enter the full file name including the extension.

For build configurations, enter 'Debug', 'Release', or 'Custom'. Before using the activate method on a build configuration, activate the project that contains the build configuration. For more information about configurations, see Configuration.

type

For type, enter the type of object to make active. If you omit the type argument, type defaults to 'project'. Enter one of the following strings for type:

  • 'project' — Makes a specified project active.

  • 'buildcfg' — Make a specified build configuration active

IDE support for type

 CCSEclipseMULTIVisualDSP++
'project'YesYesYesYes
'buildcfg'YesYes Yes

Examples

After using a constructor to create the IDE handle object, h, open several projects, make the first one active, and build the project:

h.open('c:\temp\myproj1')
h.open('c:\temp\myproj2')
h.open('c:\temp\myproj3')
h.activate('c:\temp\myproj1', 'project')
h.build

After making a project active, make the 'debug' configuration active:

h.activate('debug','buildcfg')

See Also

build | new | remove

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS