blob: 542b1ed621de83ea4fd5e332d3cff9697ec97c8b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.ws.internal.context;
import org.eclipse.jst.ws.internal.plugin.WebServicePlugin;
import org.eclipse.wst.command.internal.env.context.PersistentContext;
public class PersistentUDDIPreferenceContext extends PersistentContext implements UDDIPreferenceContext
{
public PersistentUDDIPreferenceContext()
{
super(WebServicePlugin.getInstance());
}
public void load()
{
setDefault(PREFERENCE_UDDI_CAT_DATA_COLUMN_DELIMITER, UDDIPreferenceDefaults.getUddiCatDataColumnDelimiter());
setDefault(PREFERENCE_UDDI_CAT_DATA_STRING_DELIMITER, UDDIPreferenceDefaults.getUddiCatDataStringDelimiter());
}
public void setUddiCatDataColumnDelimiter(String delimiter)
{
setValue(PREFERENCE_UDDI_CAT_DATA_COLUMN_DELIMITER, delimiter);
}
public String getUddiCatDataColumnDelimiter()
{
return getValueAsString(PREFERENCE_UDDI_CAT_DATA_COLUMN_DELIMITER);
}
public void setUddiCatDataStringDelimiter(String delimiter)
{
setValue(PREFERENCE_UDDI_CAT_DATA_STRING_DELIMITER, delimiter);
}
public String getUddiCatDataStringDelimiter()
{
return getValueAsString(PREFERENCE_UDDI_CAT_DATA_STRING_DELIMITER);
}
}
|