carbidesdk/com.nokia.carbide.cpp.sdk.doc.user/html/tasks/sdk_getprojinfo.htm
branchRCL_2_0
changeset 131 740c114ee263
parent 2 d760517a8095
child 1704 24ac5a5cf80c
equal deleted inserted replaced
129:d13aa008da33 131:740c114ee263
     6 <link rel="StyleSheet" href="../../book.css" type="text/css"/>
     6 <link rel="StyleSheet" href="../../book.css" type="text/css"/>
     7 </head>
     7 </head>
     8 <body bgcolor="#FFFFFF">
     8 <body bgcolor="#FFFFFF">
     9 
     9 
    10 <h2>Getting Carbide Project Information</h2>
    10 <h2>Getting Carbide Project Information</h2>
    11 <p>The following example code fragment demonstrates the use of Carbide.c++ APIs to access Carbide project information.</p>
    11 <p>The following example code fragments demonstrate the use of Carbide.c++ APIs to access Carbide project information.</p>
    12 <p class="note"><strong>NOTE</strong> There are two perspective IDs that may be useful when using the Carbide APIs. The perspective ID for  the Carbide.c++ perspective is <strong>com.nokia.carbide.cpp.CarbideCppPerspective</strong> and for the Debug view it is <strong>org.eclipse.debug.ui.DebugPerspective</strong>.</p>
    12 <p class="note"><strong>NOTE</strong> There are two perspective IDs that may be useful when using the Carbide APIs. The perspective ID for  the Carbide.c++ perspective is com.nokia.carbide.cpp.CarbideCppPerspective and for the Debug view it is org.eclipse.debug.ui.DebugPerspective.</p>
    13 <p>Retrieving Carbide.c++ project information starts with knowing your org.eclipse.core.resources.<STRONG>IProject</STRONG> resource and retrieving the com.nokia.carbide.cdt.builder.<STRONG>ICarbideBuildManager</STRONG> instance:</p>
    13 <p>Retrieving Carbide.c++ project information starts with knowing your org.eclipse.core.resources.<STRONG>IProject</STRONG> resource and retrieving the com.nokia.carbide.cdt.builder.<STRONG>ICarbideBuildManager</STRONG> instance:</p>
    14 <p class="listing">ICarbideBuildManager buildMgr = ICarbideBuilderPlugin.getBuildManager();</p>
    14 <p class="listing">ICarbideBuildManager buildMgr = ICarbideBuilderPlugin.getBuildManager();</p>
    15 <p>Now with your IProject resource you can grab the actual Carbide   project in com.nokia.carbide.cdt.builder.<STRONG>ICarbideProjectInfo</STRONG>:</p>
    15 <p>Now with your IProject resource you can grab the actual Carbide   project in com.nokia.carbide.cdt.builder.<STRONG>ICarbideProjectInfo</STRONG>:</p>
    16 <p class="listing">// Assumes IProject (project) is known.<br>
    16 <p class="listing">// Assumes IProject (project) is known.<br>
    17   ICarbideProjectInfo cpi = null;<br>
    17   ICarbideProjectInfo cpi = null;<br>
    62 		  	                }   
    62 		  	                }   
    63       });
    63       });
    64 // Make sure to test for and cast to proper Object type!
    64 // Make sure to test for and cast to proper Object type!
    65 String mmpStatement = (String)data;  // Now we should have the TARGETTYPE
    65 String mmpStatement = (String)data;  // Now we should have the TARGETTYPE
    66 }</PRE>
    66 }</PRE>
    67 <div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div></div>
    67 <div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
    68 </body>
    68 </body>
    69 </html>
    69 </html>