/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { String label = ( (SourceItem)object ).getName (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_SourceItem_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$ } else { styledLabel.append ( getString ( "_UI_SourceItem_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$ } return styledLabel; }
@Override public void generate () { super.generate (); if ( this.item.getConnection () == null ) { throw new IllegalStateException ( String.format ( "Item '%s' has no connection set", this.item.getName () ) ); } addSource ( makeSourceId (), this.item.getSourceName (), Names.makeName ( this.item.getConnection () ), this.item.getInformation ().getDescription () ); }
@Override public void generate () { super.generate (); if ( this.item.getConnection () == null ) { throw new IllegalStateException ( String.format ( "Item '%s' has no connection set", this.item.getName () ) ); } addSource ( makeSourceId (), this.item.getSourceName (), Names.makeName ( this.item.getConnection () ), this.item.getInformation ().getDescription () ); }