blob: 12ee4ff8210b51dc84c04039e6da95978fd075ce [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 Innoopract Informationssysteme GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Innoopract Informationssysteme GmbH - initial API and implementation
******************************************************************************/
package org.eclipse.epp.wizard.model;
import java.util.List;
/**
* @author Jordi Boehme Lopez <jboehme@innoopract.com>
*/
public class Group {
private Screen parent;
public void setParent( Screen parent ) {
this.parent = parent;
}
private final String label;
private final String alias;
private final String icon;
private final String info;
public String getInfo() {
return info;
}
public String getIcon() {
return icon;
}
private final List<IURef> iuRefs;
public String getLabel() {
return label;
}
public String getAlias() {
return alias;
}
public IURef[] getIURefs() {
return iuRefs.toArray( new IURef[ iuRefs.size() ] );
}
public Group( final String label,
final String alias,
final String icon,
final String info,
final List<IURef> iuRefs )
{
super();
this.label = label;
this.alias = alias;
this.icon = icon;
this.info = info == null
? ""
: info;
this.iuRefs = iuRefs;
for( IURef iuRef : iuRefs ) {
iuRef.setParent( this );
}
}
public Screen getParent() {
return parent;
}
}