java - How to programmatically retrieve information like language, OS, Architecture, etc. regarding the current project -
I am very new to the intelliJ plugin development and I was wondering if there is a possibility to get some information about the current project (
or existing edited file better).
Language (for example Java, Groovy, etc.)
For Java projects, Where Intel is running the architecture of the machine (such as X86, X64, etc.) and OS (Windows XP, Linux Ubuntu, Mac OS X etc.)
I am expanding a DumbAwareAction and in action (AnAEVEEVEVE event) method found me something like this:
project project = event.getData (PlatformDataKeys.PROJECT);
... but I have not received such information here.
Community version source code quickly helped write the following:
SDK project Sdk = ProjectRootManager.getInstance (project) .getSdk ();
For the module:
SDK module SDK = ((Modularroot Manager Impulse) module Rootnener.stustinstance (module)). GetSdk ();
Can not say anything about architecture or language
Comments
Post a Comment