Documentation/Source/eric5.Project.Project.html

changeset 2040
4cefd094353b
parent 2035
11bb61bc138d
child 2173
c21d1e99015a
equal deleted inserted replaced
2039:fa41ccd7f7bc 2040:4cefd094353b
445 <td>Public method to get a reference to the project browser model.</td> 445 <td>Public method to get a reference to the project browser model.</td>
446 </tr><tr> 446 </tr><tr>
447 <td><a href="#Project.getMostRecent">getMostRecent</a></td> 447 <td><a href="#Project.getMostRecent">getMostRecent</a></td>
448 <td>Public method to get the most recently opened project.</td> 448 <td>Public method to get the most recently opened project.</td>
449 </tr><tr> 449 </tr><tr>
450 <td><a href="#Project.getProgrammingLanguages">getProgrammingLanguages</a></td>
451 <td>Public method to get the programming languages supported by project.</td>
452 </tr><tr>
450 <td><a href="#Project.getProjectDictionaries">getProjectDictionaries</a></td> 453 <td><a href="#Project.getProjectDictionaries">getProjectDictionaries</a></td>
451 <td>Public method to get the names of the project specific dictionaries.</td> 454 <td>Public method to get the names of the project specific dictionaries.</td>
452 </tr><tr> 455 </tr><tr>
453 <td><a href="#Project.getProjectFile">getProjectFile</a></td> 456 <td><a href="#Project.getProjectFile">getProjectFile</a></td>
454 <td>Public method to get the path of the project file.</td> 457 <td>Public method to get the path of the project file.</td>
1500 </p><dl> 1503 </p><dl>
1501 <dt>Returns:</dt> 1504 <dt>Returns:</dt>
1502 <dd> 1505 <dd>
1503 path of the most recently opened project (string) 1506 path of the most recently opened project (string)
1504 </dd> 1507 </dd>
1508 </dl><a NAME="Project.getProgrammingLanguages" ID="Project.getProgrammingLanguages"></a>
1509 <h4>Project.getProgrammingLanguages</h4>
1510 <b>getProgrammingLanguages</b>(<i></i>)
1511 <p>
1512 Public method to get the programming languages supported by project.
1513 </p><dl>
1514 <dt>Returns:</dt>
1515 <dd>
1516 list of supported programming languages (list of string)
1517 </dd>
1505 </dl><a NAME="Project.getProjectDictionaries" ID="Project.getProjectDictionaries"></a> 1518 </dl><a NAME="Project.getProjectDictionaries" ID="Project.getProjectDictionaries"></a>
1506 <h4>Project.getProjectDictionaries</h4> 1519 <h4>Project.getProjectDictionaries</h4>
1507 <b>getProjectDictionaries</b>(<i></i>) 1520 <b>getProjectDictionaries</b>(<i></i>)
1508 <p> 1521 <p>
1509 Public method to get the names of the project specific dictionaries. 1522 Public method to get the names of the project specific dictionaries.
1585 <dd> 1598 <dd>
1586 UI type of the project (string) 1599 UI type of the project (string)
1587 </dd> 1600 </dd>
1588 </dl><a NAME="Project.getProjectTypes" ID="Project.getProjectTypes"></a> 1601 </dl><a NAME="Project.getProjectTypes" ID="Project.getProjectTypes"></a>
1589 <h4>Project.getProjectTypes</h4> 1602 <h4>Project.getProjectTypes</h4>
1590 <b>getProjectTypes</b>(<i></i>) 1603 <b>getProjectTypes</b>(<i>progLanguage=""</i>)
1591 <p> 1604 <p>
1592 Public method to get the list of supported project types. 1605 Public method to get the list of supported project types.
1593 </p><dl> 1606 </p><dl>
1607 <dt><i>progLanguage</i></dt>
1608 <dd>
1609 programming language to get project types for (string)
1610 </dd>
1611 </dl><dl>
1594 <dt>Returns:</dt> 1612 <dt>Returns:</dt>
1595 <dd> 1613 <dd>
1596 reference to the dictionary of project types. 1614 reference to the dictionary of project types.
1597 </dd> 1615 </dd>
1598 </dl><a NAME="Project.getRelativePath" ID="Project.getRelativePath"></a> 1616 </dl><a NAME="Project.getRelativePath" ID="Project.getRelativePath"></a>
1709 <dd> 1727 <dd>
1710 flag indicating, if the project contains the file (boolean) 1728 flag indicating, if the project contains the file (boolean)
1711 </dd> 1729 </dd>
1712 </dl><a NAME="Project.hasProjectType" ID="Project.hasProjectType"></a> 1730 </dl><a NAME="Project.hasProjectType" ID="Project.hasProjectType"></a>
1713 <h4>Project.hasProjectType</h4> 1731 <h4>Project.hasProjectType</h4>
1714 <b>hasProjectType</b>(<i>type_</i>) 1732 <b>hasProjectType</b>(<i>type_, progLanguage=""</i>)
1715 <p> 1733 <p>
1716 Public method to check, if a project type is already registered. 1734 Public method to check, if a project type is already registered.
1717 </p><dl> 1735 </p><dl>
1718 <dt><i>type_</i></dt> 1736 <dt><i>type_</i></dt>
1719 <dd> 1737 <dd>
1720 internal type designator to be unregistered (string) 1738 internal type designator (string)
1739 </dd><dt><i>progLanguage</i></dt>
1740 <dd>
1741 programming language of the project type (string)
1742 </dd>
1743 </dl><dl>
1744 <dt>Returns:</dt>
1745 <dd>
1746 flag indicating presence of the project type (boolean)
1721 </dd> 1747 </dd>
1722 </dl><a NAME="Project.initActions" ID="Project.initActions"></a> 1748 </dl><a NAME="Project.initActions" ID="Project.initActions"></a>
1723 <h4>Project.initActions</h4> 1749 <h4>Project.initActions</h4>
1724 <b>initActions</b>(<i></i>) 1750 <b>initActions</b>(<i></i>)
1725 <p> 1751 <p>
1964 <dd> 1990 <dd>
1965 flag indicating an update of the model is requested (boolean) 1991 flag indicating an update of the model is requested (boolean)
1966 </dd> 1992 </dd>
1967 </dl><a NAME="Project.registerProjectType" ID="Project.registerProjectType"></a> 1993 </dl><a NAME="Project.registerProjectType" ID="Project.registerProjectType"></a>
1968 <h4>Project.registerProjectType</h4> 1994 <h4>Project.registerProjectType</h4>
1969 <b>registerProjectType</b>(<i>type_, description, fileTypeCallback=None, binaryTranslationsCallback=None, lexerAssociationCallback=None</i>) 1995 <b>registerProjectType</b>(<i>type_, description, fileTypeCallback=None, binaryTranslationsCallback=None, lexerAssociationCallback=None, progLanguages=None</i>)
1970 <p> 1996 <p>
1971 Public method to register a project type. 1997 Public method to register a project type.
1972 </p><dl> 1998 </p><dl>
1973 <dt><i>type_</i></dt> 1999 <dt><i>type_</i></dt>
1974 <dd> 2000 <dd>
1988 </dd><dt><i>lexerAssociationCallback=</i></dt> 2014 </dd><dt><i>lexerAssociationCallback=</i></dt>
1989 <dd> 2015 <dd>
1990 reference to a method returning the 2016 reference to a method returning the
1991 lexer type to be used for syntax highlighting given the name of 2017 lexer type to be used for syntax highlighting given the name of
1992 a file 2018 a file
2019 </dd><dt><i>progLanguages=</i></dt>
2020 <dd>
2021 programming languages supported by the
2022 project type (list of string)
1993 </dd> 2023 </dd>
1994 </dl><a NAME="Project.removeDirectory" ID="Project.removeDirectory"></a> 2024 </dl><a NAME="Project.removeDirectory" ID="Project.removeDirectory"></a>
1995 <h4>Project.removeDirectory</h4> 2025 <h4>Project.removeDirectory</h4>
1996 <b>removeDirectory</b>(<i>dn</i>) 2026 <b>removeDirectory</b>(<i>dn</i>)
1997 <p> 2027 <p>

eric ide

mercurial