Examples of Describable


Examples of com.dtolabs.rundeck.core.plugins.configuration.Describable

        if (useCache) {
            ResourceModelSourceFactory provider = nodesSourceService.providerOfType(type);
            String name=ident;
            if(provider instanceof Describable){
                Describable desc=(Describable) provider;
                Description description = desc.getDescription();
                name = ident + " (" + description.getTitle() + ")";
            }
            return createCachingSource(sourceForConfiguration, ident,name);
        } else {
            return sourceForConfiguration;
View Full Code Here

Examples of com.dtolabs.rundeck.core.plugins.configuration.Describable

    protected static Logger log = Logger.getLogger(NodeStepPluginAdapter.class.getName());

    @Override
    public Description getDescription() {
        if (plugin instanceof Describable) {
            final Describable desc = (Describable) plugin;
            return desc.getDescription();
        } else {
            return PluginAdapterUtility.buildDescription(plugin, DescriptionBuilder.builder());
        }
    }
View Full Code Here

Examples of com.dtolabs.rundeck.core.plugins.configuration.Describable

class RemoteScriptNodeStepPluginAdapter implements NodeStepExecutor, Describable {

    @Override
    public Description getDescription() {
        if (plugin instanceof Describable) {
            final Describable desc = (Describable) plugin;
            return desc.getDescription();
        } else {
            return PluginAdapterUtility.buildDescription(plugin, DescriptionBuilder.builder());
        }
    }
View Full Code Here

Examples of com.dtolabs.rundeck.core.plugins.configuration.Describable

    public List<Description> listDescriptions() {
        final ArrayList<Description> list = new ArrayList<Description>();
        for (final ResourceFormatGenerator provider : listGenerators()) {
            if (provider instanceof Describable) {
                final Describable desc = (Describable) provider;
                list.add(desc.getDescription());
            }
        }
        return list;
    }
View Full Code Here

Examples of com.dtolabs.rundeck.core.plugins.configuration.Describable

    public List<Description> listDescriptions() {
        final ArrayList<Description> list = new ArrayList<Description>();
        for (final ResourceFormatParser provider : listParsers()) {
            if (provider instanceof Describable) {
                final Describable desc = (Describable) provider;
                list.add(desc.getDescription());
            }
        }
        return list;
    }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Describable

  /**
   * get selected value
   * @return
   */
  private Describable getSelectedValue(){
    Describable d = (Describable) ontologies.getSelectedValue();
    if(d == null)
      d = (Describable) terminologies.getSelectedValue();
    return d;
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Describable

  /**
   * open ontology expolorer
   *
   */
  private void doInfo(){
    Describable d = getSelectedValue();
    if(d == null)
      return;
    JEditorPane text = new JEditorPane();
    text.setContentType("text/html; charset=UTF-8");
    text.setEditable(false);
    text.setPreferredSize(new Dimension(400,400));
    text.setBorder(new LineBorder(Color.gray));
   
    String desc = "<b>"+d.getName()+"</b> "+d.getVersion()+"<br>"+d.getURI()+"<hr>"+d.getDescription();
    if(d instanceof Terminology){
      desc +="<hr>";
      Terminology t = (Terminology) d;
      desc += "Languages: "+Arrays.toString(t.getLanguages())+"<br>";
      desc += "Sources: "+Arrays.toString(t.getSources())+"<br>";
View Full Code Here

Examples of edu.pitt.terminology.util.Describable

  /**
   * get selected value
   * @return
   */
  private Describable getSelectedValue(){
    Describable d = (Describable) ontologies.getSelectedValue();
    if(d == null)
      d = (Describable) terminologies.getSelectedValue();
    return d;
  }
View Full Code Here

Examples of edu.pitt.terminology.util.Describable

  /**
   * open ontology expolorer
   *
   */
  private void doInfo(){
    Describable d = getSelectedValue();
    if(d == null)
      return;
    JEditorPane text = new JEditorPane();
    text.setContentType("text/html; charset=UTF-8");
    text.setEditable(false);
    text.setPreferredSize(new Dimension(400,400));
    text.setBorder(new LineBorder(Color.gray));
   
    String desc = "<b>"+d.getName()+"</b> "+d.getVersion()+"<br>"+d.getURI()+"<hr>"+d.getDescription();
    if(d instanceof Terminology){
      desc +="<hr>";
      Terminology t = (Terminology) d;
      desc += "Languages: "+Arrays.toString(t.getLanguages())+"<br>";
      desc += "Sources: "+Arrays.toString(t.getSources())+"<br>";
View Full Code Here

Examples of hudson.model.Describable

                                                                          List<Descriptor<T>> descriptors, Job owner)
        throws Descriptor.FormException {
        for (Descriptor d : descriptors) {
            String name = d.getJsonSafeClassName();
            ExternalProjectProperty<Describable> baseProperty = getExternalProjectProperty(owner, name);
            Describable describable = null;
            if (json.has(name)) {
                describable = d.newInstance(req, json.getJSONObject(name));
            }
            baseProperty.setValue(describable);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.