hudson.plugins.buckminster
Class EclipseBuckminsterBuilder.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
          extended by hudson.plugins.buckminster.EclipseBuckminsterBuilder.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
EclipseBuckminsterBuilder

public static final class EclipseBuckminsterBuilder.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>

Descriptor for EclipseBuckminsterBuilder. Used as a singleton. The class is marked as public so that it can be accessed from views.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject o)
           
 hudson.util.FormValidation doCheckEclipseHome(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          performs on-thy-fly validation of the eclipse home path field.
 hudson.util.FormValidation doCheckEclipseVersion(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 hudson.util.FormValidation doCheckGlobalPropertiesFile(hudson.model.AbstractProject<?,?> project, String value)
          Performs on-the-fly validation for the global properties file
 hudson.util.FormValidation doCheckUserCommand(hudson.model.AbstractProject<?,?> project, String value)
          Performs on-the-fly validation on the file mask wildcard.
 BuckminsterInstallation[] getBuckminsterInstallations()
           
 String getDisplayName()
          This human readable name is used in the configuration screen.
 EclipseInstallation[] getInstallations()
           
 List<TargetPlatformReference> getTargetPlatforms()
          Asks hudson for all available AbstractProjects and iterates over the available Publishers.
 boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
           
 hudson.tasks.Builder newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 void setBuckminsterInstallations(BuckminsterInstallation... installations)
           
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTargetPlatforms

public List<TargetPlatformReference> getTargetPlatforms()
Asks hudson for all available AbstractProjects and iterates over the available Publishers.

If a TargetPlatformPublisher is found and it offers a TargetPlatformReference, that reference is added to the result list.

Returns:
a list of all TargetPlatformReferences published by a TargetPlatformPublisher

getInstallations

public EclipseInstallation[] getInstallations()

getBuckminsterInstallations

public BuckminsterInstallation[] getBuckminsterInstallations()

doCheckEclipseHome

public hudson.util.FormValidation doCheckEclipseHome(org.kohsuke.stapler.StaplerRequest req,
                                                     org.kohsuke.stapler.StaplerResponse rsp)
                                              throws IOException,
                                                     javax.servlet.ServletException
performs on-thy-fly validation of the eclipse home path field.

Parameters:
req - the request
rsp - the response
Returns:
one of FormValidation.error(String) or FormValidation.ok()
Throws:
IOException
javax.servlet.ServletException

doCheckEclipseVersion

public hudson.util.FormValidation doCheckEclipseVersion(org.kohsuke.stapler.StaplerRequest req,
                                                        org.kohsuke.stapler.StaplerResponse rsp)
                                                 throws IOException,
                                                        javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

doCheckUserCommand

public hudson.util.FormValidation doCheckUserCommand(@AncestorInPath
                                                     hudson.model.AbstractProject<?,?> project,
                                                     @QueryParameter
                                                     String value)
                                              throws IOException
Performs on-the-fly validation on the file mask wildcard.

Throws:
IOException

doCheckGlobalPropertiesFile

public hudson.util.FormValidation doCheckGlobalPropertiesFile(@AncestorInPath
                                                              hudson.model.AbstractProject<?,?> project,
                                                              @QueryParameter
                                                              String value)
                                                       throws IOException
Performs on-the-fly validation for the global properties file

Throws:
IOException

getDisplayName

public String getDisplayName()
This human readable name is used in the configuration screen.

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Builder>

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject o)
                  throws hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.model.Descriptor<hudson.tasks.Builder>
Throws:
hudson.model.Descriptor.FormException

newInstance

public hudson.tasks.Builder newInstance(org.kohsuke.stapler.StaplerRequest req,
                                        net.sf.json.JSONObject formData)
                                 throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.Builder>
Throws:
hudson.model.Descriptor.FormException

isApplicable

public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>

setBuckminsterInstallations

public void setBuckminsterInstallations(BuckminsterInstallation... installations)


Copyright © 2004-2013. All Rights Reserved.