private String makeChangeLog ( final List<ChangeEntry> changes ) { final ArrayList<ChangeEntry> sortedChanges = new ArrayList<> ( changes ); Collections.sort ( sortedChanges, new ChangeEntryComparator ( true ) ); final StringBuilder sb = new StringBuilder (); for ( final ChangeEntry entry : sortedChanges ) { final Formatter f = new Formatter ( sb, Locale.ENGLISH ); f.format ( "* %3$ta %3$tb %3$td %3$tY %1$s <%2$s> %4$s", entry.getAuthor ().getName (), entry.getAuthor ().getEmail (), entry.getDate (), entry.getVersion () ); f.close (); sb.append ( '\n' ); sb.append ( entry.getDescription () ); sb.append ( '\n' ); } return sb.toString (); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Author getAuthor () { if ( author != null && author.eIsProxy () ) { InternalEObject oldAuthor = (InternalEObject)author; author = (Author)eResolveProxy ( oldAuthor ); if ( author != oldAuthor ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, DeploymentPackage.CHANGE_ENTRY__AUTHOR, oldAuthor, author ) ); } } return author; }
private String makeChangeLog ( final List<ChangeEntry> changes ) { final ArrayList<ChangeEntry> sortedChanges = new ArrayList<> ( changes ); Collections.sort ( sortedChanges, new ChangeEntryComparator ( true ) ); final StringBuilder sb = new StringBuilder (); for ( final ChangeEntry entry : sortedChanges ) { final Formatter f = new Formatter ( sb, Locale.ENGLISH ); f.format ( "* %3$ta %3$tb %3$td %3$tY %1$s <%2$s> %4$s", entry.getAuthor ().getName (), entry.getAuthor ().getEmail (), entry.getDate (), entry.getVersion () ); f.close (); sb.append ( '\n' ); sb.append ( entry.getDescription () ); sb.append ( '\n' ); } return sb.toString (); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Author getMaintainer () { if ( maintainer != null && maintainer.eIsProxy () ) { InternalEObject oldMaintainer = (InternalEObject)maintainer; maintainer = (Author)eResolveProxy ( oldMaintainer ); if ( maintainer != oldMaintainer ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, DeploymentPackage.COMMON_DEPLOYMENT_MECHANISM__MAINTAINER, oldMaintainer, maintainer ) ); } } return maintainer; }
private String makeChangeLog ( final List<ChangeEntry> changes ) { final ArrayList<ChangeEntry> sortedChanges = new ArrayList<> ( changes ); Collections.sort ( sortedChanges, new ChangeEntryComparator ( true ) ); final StringBuilder sb = new StringBuilder (); for ( final ChangeEntry entry : sortedChanges ) { final Formatter f = new Formatter ( sb, Locale.ENGLISH ); f.format ( "* %3$ta %3$tb %3$td %3$tY %1$s <%2$s> %4$s", entry.getAuthor ().getName (), entry.getAuthor ().getEmail (), entry.getDate (), entry.getVersion () ); f.close (); sb.append ( '\n' ); sb.append ( entry.getDescription () ); sb.append ( '\n' ); } return sb.toString (); }
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public Object getStyledText ( final Object object ) { final StyledString styledLabel = new StyledString (); styledLabel.append ( getString ( "_UI_Author_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " ); //$NON-NLS-1$ //$NON-NLS-2$ final Author author = (Author)object; if ( author.getName () != null ) { styledLabel.append ( author.getName () ); } styledLabel.append ( " <" + author.getEmail () + ">", StyledString.Style.DECORATIONS_STYLER ); return styledLabel; }
replacements.put ( "authorName", this.deploy.getMaintainer ().getName () ); //$NON-NLS-1$ replacements.put ( "authorEmail", this.deploy.getMaintainer ().getEmail () ); //$NON-NLS-1$ replacements.put ( "nodeName", this.applicationNode.getName () == null ? this.applicationNode.getHostName () : this.applicationNode.getName () ); //$NON-NLS-1$ replacements.put ( "version", version ); //$NON-NLS-1$
replacements.put ( "authorName", this.deploy.getMaintainer ().getName () ); //$NON-NLS-1$ replacements.put ( "authorEmail", this.deploy.getMaintainer ().getEmail () ); //$NON-NLS-1$ replacements.put ( "nodeName", this.applicationNode.getName () == null ? this.applicationNode.getHostName () : this.applicationNode.getName () ); //$NON-NLS-1$ replacements.put ( "version", version ); //$NON-NLS-1$
packageControlFile.setPriority ( "required" ); //$NON-NLS-1$ packageControlFile.setSection ( "misc" ); //$NON-NLS-1$ packageControlFile.setMaintainer ( String.format ( "%s <%s>", this.deploy.getMaintainer ().getName (), this.deploy.getMaintainer ().getEmail () ) ); //$NON-NLS-1$ packageControlFile.setDescription ( String.format ( "Configuration package for %s", Nodes.makeName ( this.applicationNode ) ), "This is an automatically generated configuration package" ); replacements.put ( "authorName", this.deploy.getMaintainer ().getName () ); //$NON-NLS-1$ replacements.put ( "authorEmail", this.deploy.getMaintainer ().getEmail () ); //$NON-NLS-1$ replacements.put ( "nodeName", this.applicationNode.getName () == null ? this.applicationNode.getHostName () : this.applicationNode.getName () ); //$NON-NLS-1$
packageControlFile.setPriority ( "required" ); //$NON-NLS-1$ packageControlFile.setSection ( "misc" ); //$NON-NLS-1$ packageControlFile.setMaintainer ( String.format ( "%s <%s>", this.deploy.getMaintainer ().getName (), this.deploy.getMaintainer ().getEmail () ) ); //$NON-NLS-1$ packageControlFile.setDescription ( String.format ( "Configuration package for %s", Nodes.makeName ( this.applicationNode ) ), "This is an automatically generated configuration package" ); replacements.put ( "authorName", this.deploy.getMaintainer ().getName () ); //$NON-NLS-1$ replacements.put ( "authorEmail", this.deploy.getMaintainer ().getEmail () ); //$NON-NLS-1$ replacements.put ( "nodeName", this.applicationNode.getName () == null ? this.applicationNode.getHostName () : this.applicationNode.getName () ); //$NON-NLS-1$
pinfo.setSummary ( String.format ( "Eclipse NeoSCADA Configuration for \"%s\"", nodeName ) ); pinfo.setDescription ( String.format ( "This is the configuration package for node \"%s\".", nodeName ) ); pinfo.setPackager ( String.format ( "%s <%s>", this.deploy.getMaintainer ().getName (), this.deploy.getMaintainer ().getEmail () ) ); pinfo.setGroup ( "Application/System" ); replacements.put ( "authorName", this.deploy.getMaintainer ().getName () ); //$NON-NLS-1$ replacements.put ( "authorEmail", this.deploy.getMaintainer ().getEmail () ); //$NON-NLS-1$ replacements.put ( "nodeName", nodeName ); //$NON-NLS-1$ replacements.put ( "version", version ); //$NON-NLS-1$