View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2008 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 java.awt.Dimension;
16  
17  import com.eviware.soapui.impl.wsdl.panels.teststeps.support.PropertyHolderTable;
18  import com.eviware.soapui.model.propertyexpansion.PropertyExpansionUtils;
19  import com.eviware.soapui.model.settings.Settings;
20  import com.eviware.soapui.support.components.SimpleForm;
21  import com.eviware.soapui.support.types.StringToStringMap;
22  
23  public class GlobalPropertiesPrefs implements Prefs
24  {
25     public final static String ENABLE_OVERRIDE = "Enable Override";
26  	
27  	public SimpleForm getForm()
28  	{
29  		SimpleForm form = new SimpleForm();
30  		
31  		PropertyHolderTable propertyHolderTable = new PropertyHolderTable( PropertyExpansionUtils.getGlobalProperties() );
32  		propertyHolderTable.setPreferredSize( new Dimension( 200, 300 ) );
33  		form.addComponent( propertyHolderTable);
34  		form.addSpace();
35  		form.appendCheckBox( ENABLE_OVERRIDE, "Enables overriding of any property-reference with global properties", false );
36  		
37  		return form;
38  	}
39  
40  	public void getFormValues( Settings settings )
41  	{
42  	}
43  
44  	public String getTitle()
45  	{
46  		return "Global Properties";
47  	}
48  
49  	public StringToStringMap getValues( Settings settings )
50  	{
51  		return null;
52  	}
53  
54  	public void setFormValues( Settings settings )
55  	{
56  	}
57  
58  	public void storeValues( StringToStringMap values, Settings settings )
59  	{
60  	}
61  }