hudson.plugins.mercurial
Class MercurialSCM.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.scm.SCM>
      extended by hudson.scm.SCMDescriptor<MercurialSCM>
          extended by hudson.plugins.mercurial.MercurialSCM.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
MercurialSCM

@Extension
public static final class MercurialSCM.DescriptorImpl
extends hudson.scm.SCMDescriptor<MercurialSCM>


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 
Fields inherited from class hudson.scm.SCMDescriptor
generation, repositoryBrowser
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
MercurialSCM.DescriptorImpl()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
           
 java.util.List<hudson.model.Descriptor<hudson.scm.RepositoryBrowser<?>>> getBrowserDescriptors()
           Due to compatibility issues with older version we implement this ourselves instead of relying on the parent method.
 java.lang.String getDisplayName()
           
 java.lang.String getHgExe()
          Path to mercurial executable.
 hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.scm.SCMDescriptor
isApplicable, isBrowserReusable, load
 
Methods inherited from class hudson.model.Descriptor
configure, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MercurialSCM.DescriptorImpl

public MercurialSCM.DescriptorImpl()
Method Detail

getBrowserDescriptors

public java.util.List<hudson.model.Descriptor<hudson.scm.RepositoryBrowser<?>>> getBrowserDescriptors()
Due to compatibility issues with older version we implement this ourselves instead of relying on the parent method. Kohsuke implemented a fix for this in the core (r21961), so we may drop this function after 1.325 is released.

Overrides:
getBrowserDescriptors in class hudson.scm.SCMDescriptor<MercurialSCM>
See Also:
#4514, core fix

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.scm.SCM>

getHgExe

public java.lang.String getHgExe()
Path to mercurial executable.


newInstance

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

configure

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


Copyright © 2010. All Rights Reserved.