| /******************************************************************************* |
| * Copyright (c) 2004, 2007 Boeing. |
| * 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: |
| * Boeing - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.osee.ats.workflow.item; |
| |
| import org.eclipse.osee.framework.core.data.IAttributeType; |
| import org.eclipse.osee.framework.ui.skynet.widgets.XOption; |
| import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData; |
| import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkWidgetDefinition; |
| |
| /** |
| * @author Donald G. Dunne |
| */ |
| public class AtsAttributeReviewRolesXWidgetWorkItem extends WorkWidgetDefinition { |
| protected AtsAttributeReviewRolesXWidgetWorkItem(IAttributeType attributeType) { |
| super(attributeType.getUnqualifiedName() + " - " + attributeType.getName(), attributeType.getName()); |
| DynamicXWidgetLayoutData data = new DynamicXWidgetLayoutData(null); |
| data.setName(getName()); |
| data.setStoreName(getId()); |
| data.getXOptionHandler().add(XOption.REQUIRED); |
| data.setXWidgetName("XUserRoleViewer"); |
| set(data); |
| } |
| } |