org.eclipse.cdt.make.internal.core
Class MakeTarget

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.cdt.make.internal.core.MakeTarget
All Implemented Interfaces:
IMakeCommonBuildInfo, IMakeTarget, org.eclipse.core.runtime.IAdaptable

public class MakeTarget
extends org.eclipse.core.runtime.PlatformObject
implements IMakeTarget


Field Summary
 
Fields inherited from interface org.eclipse.cdt.make.core.IMakeTarget
BUILD_TARGET
 
Fields inherited from interface org.eclipse.cdt.make.core.IMakeCommonBuildInfo
ARGS_PREFIX, BUILD_ARGUMENTS, BUILD_COMMAND, BUILD_LOCATION
 
Method Summary
 boolean appendEnvironment()
           
 boolean appendProjectEnvironment()
           
 void build(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.String getBuildArguments()
           
 java.lang.String getBuildAttribute(java.lang.String name, java.lang.String defaultValue)
           
 org.eclipse.core.runtime.IPath getBuildCommand()
           
 org.eclipse.core.runtime.IPath getBuildLocation()
           
 java.lang.String getBuildTarget()
           
 org.eclipse.core.resources.IContainer getContainer()
          Get the target build container.
 java.util.Map getEnvironment()
           
 java.lang.String[] getErrorParsers()
           
 java.util.Map getExpandedEnvironment()
           
 java.lang.String getName()
           
 org.eclipse.core.resources.IProject getProject()
           
 java.lang.String getTargetBuilderID()
           
 int hashCode()
           
 boolean isDefaultBuildCmd()
           
 boolean isStopOnError()
           
 boolean runAllBuilders()
           
 void setAppendEnvironment(boolean append)
           
 void setAppendProjectEnvironment(boolean append)
           
 void setBuildArguments(java.lang.String arguments)
           
 void setBuildAttribute(java.lang.String name, java.lang.String value)
           
 void setBuildCommand(org.eclipse.core.runtime.IPath command)
           
 void setBuildLocation(org.eclipse.core.runtime.IPath location)
           
 void setBuildTarget(java.lang.String target)
           
 void setContainer(org.eclipse.core.resources.IContainer container)
          Make this target temporary on the container, this target will not be persisted, and may not be added to the IMakeTargetManager.
 void setEnvironment(java.util.Map env)
           
 void setErrorParsers(java.lang.String[] parsers)
           
 void setRunAllBuilders(boolean runAllBuilders)
           
 void setStopOnError(boolean stopOnError)
           
 void setUseDefaultBuildCmd(boolean useDefault)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProject

public org.eclipse.core.resources.IProject getProject()
Specified by:
getProject in interface IMakeTarget

setContainer

public void setContainer(org.eclipse.core.resources.IContainer container)
Description copied from interface: IMakeTarget
Make this target temporary on the container, this target will not be persisted, and may not be added to the IMakeTargetManager.

Specified by:
setContainer in interface IMakeTarget

getName

public java.lang.String getName()
Specified by:
getName in interface IMakeTarget

getTargetBuilderID

public java.lang.String getTargetBuilderID()
Specified by:
getTargetBuilderID in interface IMakeTarget

isStopOnError

public boolean isStopOnError()
Specified by:
isStopOnError in interface IMakeCommonBuildInfo

setStopOnError

public void setStopOnError(boolean stopOnError)
                    throws org.eclipse.core.runtime.CoreException
Specified by:
setStopOnError in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

isDefaultBuildCmd

public boolean isDefaultBuildCmd()
Specified by:
isDefaultBuildCmd in interface IMakeCommonBuildInfo

setUseDefaultBuildCmd

public void setUseDefaultBuildCmd(boolean useDefault)
                           throws org.eclipse.core.runtime.CoreException
Specified by:
setUseDefaultBuildCmd in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

getBuildCommand

public org.eclipse.core.runtime.IPath getBuildCommand()
Specified by:
getBuildCommand in interface IMakeCommonBuildInfo

setBuildCommand

public void setBuildCommand(org.eclipse.core.runtime.IPath command)
                     throws org.eclipse.core.runtime.CoreException
Specified by:
setBuildCommand in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

getBuildArguments

public java.lang.String getBuildArguments()
Specified by:
getBuildArguments in interface IMakeCommonBuildInfo

setBuildArguments

public void setBuildArguments(java.lang.String arguments)
                       throws org.eclipse.core.runtime.CoreException
Specified by:
setBuildArguments in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

setBuildTarget

public void setBuildTarget(java.lang.String target)
                    throws org.eclipse.core.runtime.CoreException
Specified by:
setBuildTarget in interface IMakeTarget
Throws:
org.eclipse.core.runtime.CoreException

getBuildTarget

public java.lang.String getBuildTarget()
Specified by:
getBuildTarget in interface IMakeTarget

setRunAllBuilders

public void setRunAllBuilders(boolean runAllBuilders)
                       throws org.eclipse.core.runtime.CoreException
Specified by:
setRunAllBuilders in interface IMakeTarget
Throws:
org.eclipse.core.runtime.CoreException

runAllBuilders

public boolean runAllBuilders()
Specified by:
runAllBuilders in interface IMakeTarget

setBuildAttribute

public void setBuildAttribute(java.lang.String name,
                              java.lang.String value)
                       throws org.eclipse.core.runtime.CoreException
Specified by:
setBuildAttribute in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

getBuildAttribute

public java.lang.String getBuildAttribute(java.lang.String name,
                                          java.lang.String defaultValue)
Specified by:
getBuildAttribute in interface IMakeCommonBuildInfo

getBuildLocation

public org.eclipse.core.runtime.IPath getBuildLocation()
Specified by:
getBuildLocation in interface IMakeCommonBuildInfo

setBuildLocation

public void setBuildLocation(org.eclipse.core.runtime.IPath location)
                      throws org.eclipse.core.runtime.CoreException
Specified by:
setBuildLocation in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

getErrorParsers

public java.lang.String[] getErrorParsers()
Specified by:
getErrorParsers in interface IMakeCommonBuildInfo

setErrorParsers

public void setErrorParsers(java.lang.String[] parsers)
                     throws org.eclipse.core.runtime.CoreException
Specified by:
setErrorParsers in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

getExpandedEnvironment

public java.util.Map getExpandedEnvironment()
                                     throws org.eclipse.core.runtime.CoreException
Specified by:
getExpandedEnvironment in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

appendProjectEnvironment

public boolean appendProjectEnvironment()
Specified by:
appendProjectEnvironment in interface IMakeTarget

setAppendProjectEnvironment

public void setAppendProjectEnvironment(boolean append)
Specified by:
setAppendProjectEnvironment in interface IMakeTarget

getEnvironment

public java.util.Map getEnvironment()
Specified by:
getEnvironment in interface IMakeCommonBuildInfo

setEnvironment

public void setEnvironment(java.util.Map env)
                    throws org.eclipse.core.runtime.CoreException
Specified by:
setEnvironment in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

setAppendEnvironment

public void setAppendEnvironment(boolean append)
                          throws org.eclipse.core.runtime.CoreException
Specified by:
setAppendEnvironment in interface IMakeCommonBuildInfo
Throws:
org.eclipse.core.runtime.CoreException

appendEnvironment

public boolean appendEnvironment()
Specified by:
appendEnvironment in interface IMakeCommonBuildInfo

getContainer

public org.eclipse.core.resources.IContainer getContainer()
Description copied from interface: IMakeTarget
Get the target build container.

Specified by:
getContainer in interface IMakeTarget
Returns:
IContainer of where target build will be invoked.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

build

public void build(org.eclipse.core.runtime.IProgressMonitor monitor)
           throws org.eclipse.core.runtime.CoreException
Specified by:
build in interface IMakeTarget
Throws:
org.eclipse.core.runtime.CoreException

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class org.eclipse.core.runtime.PlatformObject