/******************************************************************************* * 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.util.widgets.dialog; import org.eclipse.osee.ats.workflow.item.AtsWorkDefinitions; import org.eclipse.osee.framework.core.exception.OseeCoreException; import org.eclipse.osee.framework.ui.skynet.results.XResultData; import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkItemDefinitionFactory; /** * @author Donald G. Dunne */ public class SimpleTaskResolutionOptionsRule extends TaskResolutionOptionRule { public static String ID = "ats.simpleTaskResolutionOptions"; public static enum States { None, In_Work, Waiting, Coded, Awaiting_Review, No_Change, Complete }; public static String resolutionOptionsXml = " " + // " " + // " " + // " " + // " " + // " " + // " " + // " " + // ""; public SimpleTaskResolutionOptionsRule() { super(ID, ID, resolutionOptionsXml); } public void config(WriteType writeType, XResultData xResultData) throws OseeCoreException { AtsWorkDefinitions.importWorkItemDefinitionsIntoDb(writeType, xResultData, this); } public static void relatePageToRules(String pageId) throws OseeCoreException { WorkItemDefinitionFactory.relateWorkItemDefinitions(pageId, ID); } }