All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.carrotgarden.maven.scalor.eclipse.Comment.scala Maven / Gradle / Ivy

Go to download

Build integrator for Java, Scala, Scala.macro, Scala.js, Scala.native, Eclipse and Maven

There is a newer version: 1.5.0.20190502185130
Show newest version
package com.carrotgarden.maven.scalor.eclipse

import org.eclipse.core.runtime.IProgressMonitor

import com.carrotgarden.maven.scalor.util.Optioner.convert_Option_Value

/**
 * Provide eclipse .project file comment.
 */
trait Comment {

  self : Maven =>

  import org.eclipse.core.resources.IResource._

  /**
   */
  def ensureProjectComment(
    context : Config.SetupContext,
    monitor : IProgressMonitor
  ) : Unit = {
    import context._
    import config._
    if ( eclipseProjectCommentApply ) {
      logger.info( "Applying Eclipse .project comment." )
      val project = request.getProject
      val description = project.getDescription
      description.setComment( eclipseProjectCommentString )
      project.setDescription( description, FORCE, monitor )
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy