1
2
3
4
5
6
7
8
9
10
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 }