@Override public void visit ( final DebianDeploymentMechanism item ) throws Exception { item.getAdditionalDependencies ().add ( dependecy ); } } );
private String findVersion () { final ArrayList<ChangeEntry> sortedChanges = new ArrayList<> ( this.deploy.getChanges () ); if ( sortedChanges.isEmpty () ) { throw new IllegalStateException ( String.format ( "No change record found" ) ); } Collections.sort ( sortedChanges, new ChangeEntryComparator ( true ) ); return sortedChanges.get ( 0 ).getVersion (); }
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$ replacements.put ( "start.apps", createStartApps () ); //$NON-NLS-1$ replacements.put ( "create.apps", makeCreate ( this.deploy ) ); //$NON-NLS-1$ replacements.put ( "multiuserScreen", this.deploy.isMultiUserScreen () ? "1" : "0" );
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { StartupMechanism labelValue = ( (DebianDeploymentMechanism)object ).getStartupMechanism (); String label = labelValue == null ? null : labelValue.toString (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_DebianDeploymentMechanism_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$ } else { styledLabel.append ( getString ( "_UI_DebianDeploymentMechanism_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$ } return styledLabel; }
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$ replacements.put ( "start.apps", createStartApps () ); //$NON-NLS-1$ replacements.put ( "create.apps", makeCreate ( this.deploy ) ); //$NON-NLS-1$ replacements.put ( "multiuserScreen", this.deploy.isMultiUserScreen () ? "1" : "0" );
private String makeDependencies ( final Set<String> dependencies ) { final Set<String> result = new HashSet<> (); if ( needP2 () ) { result.add ( "org.eclipse.scada.p2" ); //$NON-NLS-1$ } result.add ( "org.eclipse.scada.deploy.p2-incubation" ); //$NON-NLS-1$ result.addAll ( this.deploy.getAdditionalDependencies () ); final StartupHandler sh = getStartupHandler (); if ( sh != null ) { result.addAll ( sh.getAdditionalPackageDependencies () ); } result.addAll ( dependencies ); return StringHelper.join ( result, ", " ); //$NON-NLS-1$ }
private String findVersion () { final ArrayList<ChangeEntry> sortedChanges = new ArrayList<> ( this.deploy.getChanges () ); if ( sortedChanges.isEmpty () ) { throw new IllegalStateException ( String.format ( "No change record found" ) ); } Collections.sort ( sortedChanges, new ChangeEntryComparator ( true ) ); return sortedChanges.get ( 0 ).getVersion (); }
private String makeDependencies ( final Set<String> dependencies ) { final Set<String> result = new HashSet<> (); if ( needP2 () ) { result.add ( "org.eclipse.scada.p2" ); //$NON-NLS-1$ } result.add ( "org.eclipse.scada.deploy.p2-incubation" ); //$NON-NLS-1$ result.addAll ( this.deploy.getAdditionalDependencies () ); final StartupHandler sh = getStartupHandler (); if ( sh != null ) { result.addAll ( sh.getAdditionalPackageDependencies () ); } result.addAll ( dependencies ); return StringHelper.join ( result, ", " ); //$NON-NLS-1$ }