public Trigger getTrigger() { ActionValue value = null; switch (cmbActionType.getSelectionIndex()) { case 0: value = URLValueImpl.create(txtBaseURL.getText(), txtTarget.getText(), txtBaseParm.getText(), txtValueParm.getText(), txtSeriesParm.getText()); break; case 1: value = TooltipValueImpl.create(iscDelay.getValue(), txtTooltipText.getText()); break; case 2: value = AttributeFactory.eINSTANCE.createSeriesValue(); ((SeriesValue) value).setName(txtSeriesDefinition.getText()); break; case 3: value = AttributeFactory.eINSTANCE.createScriptValue(); ((ScriptValue) value).setScript(txtScript.getText()); break; } Action action = ActionImpl.create(ActionType.get(cmbActionType.getText()), value); return TriggerImpl.create(TriggerCondition.get(cmbTriggerType.getText()), action); }
public Trigger getTrigger( ) { ActionValue value = null; switch ( cmbActionType.getSelectionIndex( ) ) { case 0 : value = URLValueImpl.create( txtBaseURL.getText( ), txtTarget.getText( ), txtBaseParm.getText( ), txtValueParm.getText( ), txtSeriesParm.getText( ) ); break; case 1 : value = TooltipValueImpl.create( iscDelay.getValue( ), txtTooltipText.getText( ) ); break; case 2 : value = AttributeFactory.eINSTANCE.createSeriesValue( ); ( (SeriesValue) value ).setName( txtSeriesDefinition.getText( ) ); break; case 3 : value = AttributeFactory.eINSTANCE.createScriptValue( ); ( (ScriptValue) value ).setScript( txtScript.getText( ) ); break; } Action action = ActionImpl.create( ActionType.get( LiteralHelper.actionTypeSet.getNameByDisplayName( cmbActionType.getText( ) ) ), value ); return TriggerImpl.create( TriggerCondition.get( LiteralHelper.triggerConditionSet.getNameByDisplayName( cmbTriggerType.getText( ) ) ), action ); }
    public Trigger getTrigger()    {        ActionValue value = null;        switch (cmbActionType.getSelectionIndex())        {            case 0:                value = URLValueImpl.create(txtBaseURL.getText(), txtTarget.getText(), txtBaseParm.getText(),                    txtValueParm.getText(), txtSeriesParm.getText());                break;            case 1:                value = TooltipValueImpl.create(iscDelay.getValue(), txtTooltipText.getText());                break;            case 2:                value = AttributeFactory.eINSTANCE.createSeriesValue();                ((SeriesValue) value).setName(txtSeriesDefinition.getText());                break;            case 3:                value = AttributeFactory.eINSTANCE.createScriptValue();                ((ScriptValue) value).setScript(txtScript.getText());                break;        }        Action action = ActionImpl.create(ActionType.get(cmbActionType.getText()), value);        return TriggerImpl.create(TriggerCondition.get(cmbTriggerType.getText()), action);    }