View | Details | Raw Unified | Return to bug 132666
Collapse All | Expand All

(-)src/org/eclipse/core/runtime/preferences/IProductPreferencesService.java (-30 lines)
Removed Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.core.runtime.preferences;
12
13
import java.util.Properties;
14
15
/**
16
 * A product can customize preferences by implementing this service.
17
 * 
18
 * @since org.eclipse.equinox.preferences 1.0
19
 */
20
public interface IProductPreferencesService {
21
	/**
22
	 * @return default preferences specified by the product. 
23
	 */
24
	public Properties getProductCustomization();
25
26
	/**
27
	 * @return translation table for default preferences
28
	 */
29
	public Properties getProductTranslation();
30
}
(-)src/org/eclipse/core/internal/preferences/IProductPreferencesService.java (+30 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2006 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.core.internal.preferences;
12
13
import java.util.Properties;
14
15
/**
16
 * A product can customize preferences by implementing this service.
17
 * 
18
 * @since org.eclipse.equinox.preferences 1.0
19
 */
20
public interface IProductPreferencesService {
21
	/**
22
	 * @return default preferences specified by the product. 
23
	 */
24
	public Properties getProductCustomization();
25
26
	/**
27
	 * @return translation table for default preferences
28
	 */
29
	public Properties getProductTranslation();
30
}
(-)src/org/eclipse/core/internal/preferences/ProductPreferencesService.java (-2 / +1 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
2
 * Copyright (c) 2005, 2006 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 17-23 Link Here
17
import java.util.Properties;
17
import java.util.Properties;
18
import org.eclipse.core.internal.runtime.InternalPlatform;
18
import org.eclipse.core.internal.runtime.InternalPlatform;
19
import org.eclipse.core.runtime.*;
19
import org.eclipse.core.runtime.*;
20
import org.eclipse.core.runtime.preferences.IProductPreferencesService;
21
import org.osgi.framework.Bundle;
20
import org.osgi.framework.Bundle;
22
21
23
public class ProductPreferencesService implements IProductPreferencesService {
22
public class ProductPreferencesService implements IProductPreferencesService {
(-)src/org/eclipse/core/internal/runtime/InternalPlatform.java (-1 lines)
Lines 19-25 Link Here
19
import org.eclipse.core.runtime.*;
19
import org.eclipse.core.runtime.*;
20
import org.eclipse.core.runtime.content.IContentTypeManager;
20
import org.eclipse.core.runtime.content.IContentTypeManager;
21
import org.eclipse.core.runtime.preferences.IPreferencesService;
21
import org.eclipse.core.runtime.preferences.IPreferencesService;
22
import org.eclipse.core.runtime.preferences.IProductPreferencesService;
23
import org.eclipse.osgi.framework.log.FrameworkLog;
22
import org.eclipse.osgi.framework.log.FrameworkLog;
24
import org.eclipse.osgi.framework.log.FrameworkLogEntry;
23
import org.eclipse.osgi.framework.log.FrameworkLogEntry;
25
import org.eclipse.osgi.service.datalocation.Location;
24
import org.eclipse.osgi.service.datalocation.Location;

Return to bug 132666