![]() In this example, DoLongLastingOperation needs to internally execute an async operation. String result = StringParserService.Parse ("Copyright (c) $ The class can be used to parse strings which contain tags and replace them with actual values. For example: var values = new Dictionary () The PropertyService class also has a ConfigPath property for getting the path where all configuration information is stored, so add-ins can also store create configuration files there.Īllows creating nested groups of properties. Add-ins can use it to store custom configuration information (although that information won’t be removed if the add-in is uninstalled). This class can be used to store global configuration properties. Global Configuration Properties MonoDevelop.Core PropertyService Those messages are written to the console from which MD started and also to an internal log shown in the Message Log pad (View/Other Windows/Message Log). This class provides methods for logging debug, information, warning and error messages. To be used in add-ins to get translated strings. Mono.Addins AddinManager.CurrentLocalizer This class can be used to get translated strings in the main IDE solution. The class can be used to get translated strings in the main IDE solution. See the Getting Localized Strings of the Mono.Addins reference manual to learn how to do it. Information about an assembly, including name, version and location.Īdd-ins must use add-in localizers for translating strings in the code. Provides methods for getting installed packages and assemblies Provides methods for getting installed frameworks and runtimes. Here are some classes you can use: MonoDevelop.Core Runtime.SystemAssemblyService Given a partial assembly name, get the full name.Given an assembly name, find the location of the assembly, or the package providing it.Get the list of assemblies of a package. ![]() Get a list of packages installed for a given runtime.Get a list of installed frameworks, for each runtime.Once you have a TargetRuntime object you can query information about installed packages and add-ins. The object provides methods for getting installed frameworks and runtimes. Information about installed assemblies, frameworks and runtimes The add-in engine API is explained in detail in the Mono.Addins Reference Manual. It is worth noting that the Core and Projects layers are not tied to the IDE application, so it is possible to create independent applications which make use of those services. It provides methods for reading, writing and building projects, as well as a parsing service. The Projects layer implements the project object model.The Core layer provides basic services such as logging, progress monitoring or file management which are used through the whole IDE.This article provides an overview of this API, explaining where to find the most important services and how to use them. The MonoDevelop API is extensive and still changing.
0 Comments
Leave a Reply. |