You can also show nodes which do not directly correspond to individual files-e.g. Typically you will show important source roots (try PackageView in the case of Java package roots), or important files. You can show whatever subnodes you like, according to the project’s semantics. LogicalViewProviderĬontrols the display in the Projects tab. applied as well, and it is possible to have basically different icons depending on project metadata. Typically all projects of a given type will share an icon, but there may be badging etc. Lets you control the display name and icon of the project. Though project type providers are allowed a great deal of leeway in how they implement the project SPIs, there is a fairly extensive SPI support suite which assumes that the project uses Ant as a build tool, and defines a number of convenience implementations optimized towards this system. FileOwnerQuery.getOwner(someJavaFile) in the last example) will be asked to provide an answer. For queries mentioned here, usually the query implementation may be registered in the project (using Project.lookup) rather than globally, and the project associated with the file mentioned in the question (e.g. ClassPath.getClassPath(someJavaFile, ClassPath.COMPILE)) and possibly receive an answer query implementations are registered (using fault) by any modules, and asked in turn. Interaction between project implementations and other functionality in the IDE is normally done using queries, a pattern whereby a client can ask a concrete question (e.g. Often Apache Ant is used as a build tool to produce a final program or other delierable from sources, but this is not required. Some actions can be sensitive to the selected file. The IDE defines certain generic actions such as Build which can be invoked on a project, which have corresponding commands, simple strings like build. This is used mainly when opening a project using the Open Project action. A project can be garbage collected if it is closed attempting to refer to it again (via its project directory) will automatically load it again.Ī project may list subprojects, other projects it somehow depends on. It can also be loaded though not open an open project is however always loaded. It can also define a customizer action, usually opening a properties dialog.Ī project can be opened or closed via the GUI. Different project types may behave very differently, or look almost alike, depending on their intent.Ī project defines what appears beneath its node in the Projects tab-sometimes called its logical view. There are different types of projects available, according to what modules you have installed. A project owns all files inside its project folder or subfolders (except when a subfolder is itself another project folder, which is allowed) it might also own files located elsewhere on disk, to permit a user to keep IDE-specific configuration separate from existing “pristine” sources.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |