Class IdeaSettings

    • Constructor Detail

      • IdeaSettings

        public IdeaSettings()
      • IdeaSettings

        public IdeaSettings​(@NotNull
                            ContentProvider contentProvider)
    • Method Detail

      • getIpr

        @NotNull
        public String getIpr()
      • isShouldLoadIml

        public boolean isShouldLoadIml()
      • setShouldLoadIml

        public void setShouldLoadIml​(boolean shouldLoadIml)
      • isShouldLoadArtifacts

        public boolean isShouldLoadArtifacts()
      • setShouldLoadArtifacts

        public void setShouldLoadArtifacts​(boolean shouldLoadArtifacts)
      • isShouldLoadRunConfigurations

        public boolean isShouldLoadRunConfigurations()
      • setShouldLoadRunConfigurations

        public void setShouldLoadRunConfigurations​(boolean shouldLoadRunConfigurations)
      • update

        public void update()
      • getUnresolvedModules

        public List<String> getUnresolvedModules()
      • setPathVariable

        public void setPathVariable​(String key,
                                    String value)
      • setPathVariablesBaseDir

        public void setPathVariablesBaseDir​(File pathVariablesBaseDir)
      • writeTo

        public void writeTo​(org.jdom.Element parentElement)
        Description copied from interface: XmlExternalizable
        Write data to the JDOM element
        Specified by:
        writeTo in interface XmlExternalizable
        Parameters:
        parentElement - - parent element to write data to
      • fillRunParameter

        public void fillRunParameter​(Map<String,​String> runParameters)
      • toXml

        public String toXml()
      • readFrom

        public void readFrom​(@NotNull
                             org.jdom.Element parentElement)
      • readFrom

        public void readFrom​(String iprXml)
                      throws org.jdom.JDOMException
        Throws:
        org.jdom.JDOMException
      • addGlobalLibrary

        public Library addGlobalLibrary​(@NotNull
                                        String name)
      • removeGlobalLibrary

        public void removeGlobalLibrary​(@NotNull
                                        String name)
      • addSdk

        @NotNull
        public Sdk addSdk​(@NotNull
                          String name,
                          String jdkType)
      • removeSdk

        public void removeSdk​(@NotNull
                              String name)
      • getIprFileError

        public String getIprFileError()
      • getIprFileException

        public Exception getIprFileException()
      • createIprIfNeeded

        public File createIprIfNeeded​(File checkoutDir)
                               throws IOException,
                                      org.jdom.JDOMException,
                                      VcsException
        Parameters:
        checkoutDir - checkout directory, it is used to determine the location of the ipr file
        Returns:
        created ipr file was created from .idea project settings or null if there is no .idea directory
        Throws:
        IOException - on IO error
        org.jdom.JDOMException - when unable to parse some components from .idea directory
        VcsException - when unable to read some components from .idea directory
      • setIprFileError

        public void setIprFileError​(String errorString)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • resolveSubstitutions

        public void resolveSubstitutions​(@NotNull
                                         ValueResolver resolver)