Source code file content

Revision: 2

import
» Project Revision History

» Checkout URL

web-content / trunk / docs / org-netbeans-modules-cnd-api-model / org / netbeans / modules / cnd / api / model / CsmModel.html

Size: 22568 bytes, 1 line
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_11) on Fri Nov 23 00:33:20 MSK 2007 -->
<TITLE>
CsmModel (C/C++ Code Model API)
</TITLE>

<META NAME="keywords" CONTENT="org.netbeans.modules.cnd.api.model.CsmModel interface">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../javadoc.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="CsmModel (C/C++ Code Model API)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CsmModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
org.netbeans.modules.cnd.api.model/1 1.3 1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmMethod.html" title="interface in org.netbeans.modules.cnd.api.model"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelAccessor.html" title="class in org.netbeans.modules.cnd.api.model"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../index.html?org/netbeans/modules/cnd/api/model/CsmModel.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="CsmModel.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.netbeans.modules.cnd.api.model</FONT>
<BR>
Interface CsmModel</H2>
<DL>
<DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelAccessor.CsmModelEx.html" title="interface in org.netbeans.modules.cnd.api.model">CsmModelAccessor.CsmModelEx</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>CsmModel</B></DL>
</PRE>

<P>
Source model
<P>

<P>
<HR>

<P>

<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#addModelListener(org.netbeans.modules.cnd.api.model.CsmModelListener)">addModelListener</A></B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmModelListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#addModelStateListener(org.netbeans.modules.cnd.api.model.CsmModelStateListener)">addModelStateListener</A></B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelStateListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmModelStateListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#addProgressListener(org.netbeans.modules.cnd.api.model.CsmProgressListener)">addProgressListener</A></B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmProgressListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmProgressListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#enqueue(java.lang.Runnable)">enqueue</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runnable.html" title="class or interface in java.lang">Runnable</A>&nbsp;task)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Code model calls can be very expensive.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#enqueue(java.lang.Runnable, java.lang.String)">enqueue</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runnable.html" title="class or interface in java.lang">Runnable</A>&nbsp;task,
        <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Code model calls can be very expensive.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmFile.html" title="interface in org.netbeans.modules.cnd.api.model">CsmFile</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#findFile(java.lang.String)">findFile</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;absPath)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find project that contains file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmProject.html" title="interface in org.netbeans.modules.cnd.api.model">CsmProject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#getProject(java.lang.Object)">getProject</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;id)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelState.html" title="enum in org.netbeans.modules.cnd.api.model">CsmModelState</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#getState()">getState</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the state of the model</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&lt;<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmProject.html" title="interface in org.netbeans.modules.cnd.api.model">CsmProject</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#projects()">projects</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#removeModelListener(org.netbeans.modules.cnd.api.model.CsmModelListener)">removeModelListener</A></B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmModelListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#removeModelStateListener(org.netbeans.modules.cnd.api.model.CsmModelStateListener)">removeModelStateListener</A></B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelStateListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmModelStateListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModel.html#removeProgressListener(org.netbeans.modules.cnd.api.model.CsmProgressListener)">removeProgressListener</A></B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmProgressListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmProgressListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="getProject(java.lang.Object)"><!-- --></A><H3>
getProject</H3>
<PRE>
<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmProject.html" title="interface in org.netbeans.modules.cnd.api.model">CsmProject</A> <B>getProject</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;id)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - Netbeans project</DL>
</DD>
</DL>
<HR>

<A NAME="projects()"><!-- --></A><H3>
projects</H3>
<PRE>
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&lt;<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmProject.html" title="interface in org.netbeans.modules.cnd.api.model">CsmProject</A>&gt; <B>projects</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addModelListener(org.netbeans.modules.cnd.api.model.CsmModelListener)"><!-- --></A><H3>
addModelListener</H3>
<PRE>
void <B>addModelListener</B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmModelListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removeModelListener(org.netbeans.modules.cnd.api.model.CsmModelListener)"><!-- --></A><H3>
removeModelListener</H3>
<PRE>
void <B>removeModelListener</B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmModelListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addProgressListener(org.netbeans.modules.cnd.api.model.CsmProgressListener)"><!-- --></A><H3>
addProgressListener</H3>
<PRE>
void <B>addProgressListener</B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmProgressListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmProgressListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removeProgressListener(org.netbeans.modules.cnd.api.model.CsmProgressListener)"><!-- --></A><H3>
removeProgressListener</H3>
<PRE>
void <B>removeProgressListener</B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmProgressListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmProgressListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addModelStateListener(org.netbeans.modules.cnd.api.model.CsmModelStateListener)"><!-- --></A><H3>
addModelStateListener</H3>
<PRE>
void <B>addModelStateListener</B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelStateListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmModelStateListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removeModelStateListener(org.netbeans.modules.cnd.api.model.CsmModelStateListener)"><!-- --></A><H3>
removeModelStateListener</H3>
<PRE>
void <B>removeModelStateListener</B>(<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelStateListener.html" title="interface in org.netbeans.modules.cnd.api.model">CsmModelStateListener</A>&nbsp;listener)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="enqueue(java.lang.Runnable)"><!-- --></A><H3>
enqueue</H3>
<PRE>
void <B>enqueue</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runnable.html" title="class or interface in java.lang">Runnable</A>&nbsp;task)</PRE>
<DL>
<DD>Code model calls can be very expensive.
 Therefore one can never call code model from event dispatching thread.
 Moreover, to make code model able to effectively solve synchronization issues,
 all callers shall use not their own threads but call enqueue method instead.

 The method creates a thread and runs the given task in this thread.

 Whether or not the thread be created immediately or the task
 will be just enqueued and runned later on, depends on implementation.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>task</CODE> - task to run</DL>
</DD>
</DL>
<HR>

<A NAME="enqueue(java.lang.Runnable, java.lang.String)"><!-- --></A><H3>
enqueue</H3>
<PRE>
void <B>enqueue</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runnable.html" title="class or interface in java.lang">Runnable</A>&nbsp;task,
             <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
<DL>
<DD>Code model calls can be very expensive. 
 Therefore one can never call code model from event dispatching thread.
 Moreover, to make code model able to effectively solve synchronization issues,
 all callers shall use not their own threads but call enqueue method instead.

 The method creates a thread and runs the given task in this thread.

 Whether or not the thread be created immediately or the task
 will be just enqueued and runned later on, depends on implementation.

 We recommend using this method rather than one without <code>name</code> parameter.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>task</CODE> - task to run<DD><CODE>name</CODE> - name that would be added to the thread name</DL>
</DD>
</DL>
<HR>

<A NAME="findFile(java.lang.String)"><!-- --></A><H3>
findFile</H3>
<PRE>
<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmFile.html" title="interface in org.netbeans.modules.cnd.api.model">CsmFile</A> <B>findFile</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;absPath)</PRE>
<DL>
<DD>Find project that contains file.
 Returns CsmFile if project is found.

 This function might be costly (this depends on the model state).

 CAUTION: this method should never be called directly from the thread, 
 in which model notificatios (either CsmModelListener or CsmProgressListener) come.
 These notifications come directly in parser thread or project initialization thread.
 Calling findFile from these threads may cause deadlock.

 TODO: add CsmFile[] findFiles(String absPath) since there might be multiple CsmFile instances,
 associated with the same path, in the case the same file is included into different projects
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>absPath</CODE> - absolute file path</DL>
</DD>
</DL>
<HR>

<A NAME="getState()"><!-- --></A><H3>
getState</H3>
<PRE>
<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelState.html" title="enum in org.netbeans.modules.cnd.api.model">CsmModelState</A> <B>getState</B>()</PRE>
<DL>
<DD>Returns the state of the model
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CsmModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
org.netbeans.modules.cnd.api.model/1 1.3 1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmMethod.html" title="interface in org.netbeans.modules.cnd.api.model"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../../org/netbeans/modules/cnd/api/model/CsmModelAccessor.html" title="class in org.netbeans.modules.cnd.api.model"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../index.html?org/netbeans/modules/cnd/api/model/CsmModel.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="CsmModel.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<span class="footnote">Built on November 23 2007.&nbsp;&nbsp;|&nbsp;&nbsp;Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.</span><!-- Begin SiteCatalyst code --><script language="JavaScript" src="http://www.netbeans.org/images/js/s_code_remote.js"></script><!-- End SiteCatalyst code --><!-- Google webtracking analytics --><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript"> _uacct = "UA-198771-2"; urchinTracker();</script>
</BODY>
</HTML>

Project Features

About this Project

CND was started in November 2009, is owned by DimaZh, and has 197 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close