View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2007 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  
13  package com.eviware.soapui.actions;
14  
15  import com.eviware.soapui.impl.wsdl.panels.teststeps.support.PropertyHolderTable;
16  import com.eviware.soapui.model.propertyexpansion.PropertyExpansionUtils;
17  import com.eviware.soapui.model.settings.Settings;
18  import com.eviware.soapui.support.components.SimpleForm;
19  import com.eviware.soapui.support.types.StringToStringMap;
20  
21  public class GlobalPropertiesPrefs implements Prefs
22  {
23     public final static String ENABLE_OVERRIDE = "Enable Override";
24  	
25  	public SimpleForm getForm()
26  	{
27  		SimpleForm form = new SimpleForm();
28  		
29  		form.addComponent( new PropertyHolderTable( PropertyExpansionUtils.getGlobalProperties() ));
30  		form.addSpace();
31  		form.appendCheckBox( ENABLE_OVERRIDE, "Enables overriding of any property-reference with global properties", false );
32  		
33  		return form;
34  	}
35  
36  	public void getFormValues( Settings settings )
37  	{
38  	}
39  
40  	public String getTitle()
41  	{
42  		return "Global Properties";
43  	}
44  
45  	public StringToStringMap getValues( Settings settings )
46  	{
47  		return null;
48  	}
49  
50  	public void setFormValues( Settings settings )
51  	{
52  	}
53  
54  	public void storeValues( StringToStringMap values, Settings settings )
55  	{
56  	}
57  }