@Override public String asString() { if ( isBound() ) { return this.getBinding(); } if ( this.value == null ) { return "null"; } return "\"" + value + "\""; }
@Override public String asString() { if ( isBound() ) { return this.getBinding(); } return "null"; }
public PortableParameterDefinition( String name ) { setName( name ); }
private PortableWorkDefinition cloneWorkItemDefinition( PortableWorkDefinition pwd ) { if ( pwd == null ) { return null; } PortableWorkDefinition clone = new PortableWorkDefinition(); clone.setName( pwd.getName() ); clone.setDisplayName( pwd.getDisplayName() ); clone.setParameters( cloneParameters( pwd.getParameters() ) ); clone.setResults( cloneParameters( pwd.getResults() ) ); return clone; }
public void onChange( ChangeEvent event ) { int index = workItemResultParameters.getSelectedIndex(); if ( index >= 0 ) { String key = workItemResultParameters.getValue( index ); WorkItemParameter wip = workItemResultParametersMap.get( key ); editingCol.setWorkItemName( wip.workDefinition.getName() ); editingCol.setWorkItemResultParameterName( wip.workParameterDefinition.getName() ); editingCol.setParameterClassName( wip.workParameterDefinition.getClassName() ); } }
@Override public String asString() { if ( isBound() ) { return this.getBinding(); } if ( this.value == null ) { return "null"; } return Float.toString( this.value ) + "f"; }
@Override public String asString() { if ( isBound() ) { return this.getBinding(); } if ( this.value == null ) { return "null"; } return Integer.toString( this.value ); }
public boolean isBound() { return ( this.getBinding() != null && !"".equals( this.getBinding() ) ); }
public boolean isBound() { return ( this.getBinding() != null && !"".equals( this.getBinding() ) ); }
public boolean isBound() { return ( this.getBinding() != null && !"".equals( this.getBinding() ) ); }
public boolean isBound() { return ( this.getBinding() != null && !"".equals( this.getBinding() ) ); }
@Override public String asString() { if ( !( this.getBinding() == null || "".equals( this.getBinding() ) ) ) { return this.getBinding(); } if ( this.value == null ) { return "null"; } return this.getClassName() + "." + this.value; }
public boolean isBound() { return ( this.getBinding() != null && !"".equals( this.getBinding() ) ); }
public PortableListParameterDefinition() { this.setClassName( "java.util.List" ); }
public String getSimpleClassName() { String className = getClassName(); if ( className == null ) { return null; } int index = className.lastIndexOf( "." ); if ( index >= 0 ) { className = className.substring( index + 1 ); } return className; }
public WorkItemListParameterWidget( PortableListParameterDefinition ppd, IBindingProvider bindingProvider, boolean isReadOnly ) { super( ppd, bindingProvider, isReadOnly ); this.parameterName.setText( ppd.getName() ); }
public void onChange( ChangeEvent event ) { int index = workItemResultParameters.getSelectedIndex(); if ( index >= 0 ) { String key = workItemResultParameters.getValue( index ); WorkItemParameter wip = workItemResultParametersMap.get( key ); editingCol.setWorkItemName( wip.workDefinition.getName() ); editingCol.setWorkItemResultParameterName( wip.workParameterDefinition.getName() ); editingCol.setParameterClassName( wip.workParameterDefinition.getClassName() ); } }
public void addParameter( PortableParameterDefinition parameter ) { parameters.put( parameter.getName(), parameter ); }
public void addResult( PortableParameterDefinition result ) { results.put( result.getName(), result ); }