01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2006 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU General Public License as published by the
09: * Free Software Foundation; either version 2 of the License, or (at your option)
10: * any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15: * for more details.
16: *
17: * You should have received a copy of the GNU General Public License along with
18: * this program; if not, write to the Free Software Foundation, Inc.,
19: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: *
21: *
22: * $Id$
23: */
24: package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.diagram.wizards;
25:
26: import org.eclipse.jface.wizard.IWizardPage;
27:
28: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.CCSL;
29:
30: public class HttpPropertyWizardPageCCSLClientProperty extends
31: BaseWizardPageCCSLProviderProperty {
32:
33: protected HttpPropertyWizardPageCCSLClientProperty(String pageName) {
34: super (pageName);
35: }
36:
37: public IWizardPage getNextPage() {
38: if (this .getWizard().getMainPage().isConsumer()) {
39:
40: return getWizard().getCcslConsumerPage();
41: }
42:
43: return null;
44: }
45:
46: protected void controlToModels(CCSL ccsl) {
47: ccsl.setAddRecord(false);
48: ccsl.setStripRecord(false);
49: ccsl.setUseSendMessage(false);
50:
51: try {
52:
53: if (this .getComboSaveErrors().getText().equals("true"))
54: ccsl.setSaveErrors(true);
55: else
56: ccsl.setSaveErrors(false);
57:
58: this .controlToUpoc(ccsl);
59:
60: } catch (Exception e) {
61: e.printStackTrace();
62: }
63: }
64: }
|