private void addExistentialConditionalElements() { String ces[] = HumanReadable.CONDITIONAL_ELEMENTS; choices.addItem( SECTION_SEPARATOR ); for ( int i = 0; i < ces.length; i++ ) { final String ce = ces[ i ]; String key = "CE" + ce; choices.addItem( HumanReadable.getCEDisplayName( ce ) + " ...", key ); cmds.put( key, new Command() { public void execute() { addNewCE( ce, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } ); } }
private void addFromConditionalElements() { String fces[] = HumanReadable.FROM_CONDITIONAL_ELEMENTS; choices.addItem( SECTION_SEPARATOR ); for ( int i = 0; i < fces.length; i++ ) { final String ce = fces[ i ]; String key = "FCE" + ce; choices.addItem( HumanReadable.getCEDisplayName( ce ) + " ...", key ); cmds.put( key, new Command() { public void execute() { addNewFCE( ce, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } ); } }
protected Widget getCompositeLabel() { ClickHandler click = new ClickHandler() { public void onClick( ClickEvent event ) { Widget w = (Widget) event.getSource(); showFactTypeSelector( w ); } }; String lbl = HumanReadable.getCEDisplayName(pattern.getType()); if ( pattern.getPatterns() == null || pattern.getPatterns().length == 0 ) { lbl += " <font color='red'>" + Constants.INSTANCE.clickToAddPatterns() + "</font>"; } return new ClickableLabel( lbl + ":", click, !this.readOnly ); }
String lbl = "<div class='form-field'>" + HumanReadable.getCEDisplayName( "from entry-point" ) + "</div>";
String lbl = "<div class='form-field'>" + HumanReadable.getCEDisplayName("from") + "</div>";
String lbl = "<div class='form-field'>" + HumanReadable.getCEDisplayName( "from collect" ) + "</div>";
String lbl = "<div class='form-field'>" + HumanReadable.getCEDisplayName( "from accumulate" ) + "</div>";