hudson.plugins.mercurial
Class MercurialSCM.DescriptorImpl

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

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


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType
 
Field Summary
private  String hgExe
           
 
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(StaplerRequest req, net.sf.json.JSONObject json)
           
 List<Descriptor<RepositoryBrowser<?>>> getBrowserDescriptors()
           Due to compatibility issues with older version we implement this ourselves instead of relying on the parent method.
 String getDisplayName()
           
 String getHgExe()
          Path to mercurial executable.
 SCM newInstance(StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.scm.SCMDescriptor
isApplicable, isBrowserReusable, load
 
Methods inherited from class hudson.model.Descriptor
calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, 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
 

Field Detail

hgExe

private String hgExe
Constructor Detail

MercurialSCM.DescriptorImpl

public MercurialSCM.DescriptorImpl()
Method Detail

getBrowserDescriptors

public List<Descriptor<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 SCMDescriptor<MercurialSCM>
See Also:
#4514, core fix

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class Descriptor<SCM>

getHgExe

public String getHgExe()
Path to mercurial executable.


newInstance

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

configure

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


Copyright © 2010. All Rights Reserved.