private ArchiveConfiguration findConfiguration ( final ValueArchive archive ) { if ( archive.getArchiveconfiguration () != null ) { return archive.getArchiveconfiguration (); } if ( this.app.getDefaultArchiveConfiguration () != null ) { return this.app.getDefaultArchiveConfiguration (); } return DEFAULT_CONFIGURATION; }
private void createValueArchive ( final ValueArchive archive ) { final EList<Item> items = archive.getItems (); if ( items.isEmpty () ) { return; } if ( items.size () == 1 ) { // without proxy createArchive ( archive, createSource ( archive, items.get ( 0 ), 0 ) ); } else { // with proxy int i = 1; // start with 1 instead of 0, to make a difference when no proxy is used final List<String> sources = new LinkedList<> (); for ( final Item item : items ) { sources.add ( createSource ( archive, item, i ) ); i++; } createArchive ( archive, createProxy ( archive, sources ) ); } }
/** * 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 = ( (ValueArchive)object ).getName (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_ValueArchive_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$ } else { styledLabel.append ( getString ( "_UI_ValueArchive_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$ } return styledLabel; }
private void createValueArchive ( final ValueArchive archive ) { final EList<Item> items = archive.getItems (); if ( items.isEmpty () ) { return; } if ( items.size () == 1 ) { // without proxy createArchive ( archive, createSource ( archive, items.get ( 0 ), 0 ) ); } else { // with proxy int i = 1; // start with 1 instead of 0, to make a difference when no proxy is used final List<String> sources = new LinkedList<> (); for ( final Item item : items ) { sources.add ( createSource ( archive, item, i ) ); i++; } createArchive ( archive, createProxy ( archive, sources ) ); } }
private ArchiveConfiguration findConfiguration ( final ValueArchive archive ) { if ( archive.getArchiveconfiguration () != null ) { return archive.getArchiveconfiguration (); } if ( this.app.getDefaultArchiveConfiguration () != null ) { return this.app.getDefaultArchiveConfiguration (); } return DEFAULT_CONFIGURATION; }