All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.core.runtime.preferences.BundleDefaultsScope Maven / Gradle / Ivy

Go to download

AspectJ tools most notably contains the AspectJ compiler (AJC). AJC applies aspects to Java classes during compilation, fully replacing Javac for plain Java classes and also compiling native AspectJ or annotation-based @AspectJ syntax. Furthermore, AJC can weave aspects into existing class files in a post-compile binary weaving step. This library is a superset of AspectJ weaver and hence also of AspectJ runtime.

There is a newer version: 1.9.22.1
Show newest version
/*******************************************************************************
 * Copyright (c) 2009, 2015 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.core.runtime.preferences;

import org.eclipse.core.internal.preferences.AbstractScope;
import org.eclipse.core.runtime.IPath;

/**
 * Object representing the bundle defaults scope in the Eclipse preferences
 * hierarchy. Can be used as a context for searching for preference
 * values (in the IPreferencesService APIs) or for determining the
 * correct preference node to set values in the store.
 * 

* The bundle defaults are the defaults are default values which have * been set either by the bundle's preference initializer or by a customization * file supplied with the bundle. *

* Bundle default preferences are not persisted to disk. *

*

* The path for preferences defined in the bundle defaults scope hierarchy * is as follows: /bundle_defaults/<qualifier> *

*

* This class is not intended to be subclassed. This class may be instantiated. *

* @since 3.3 */ public final class BundleDefaultsScope extends AbstractScope { /** * String constant (value of "default") used for the * scope name for the default preference scope. */ public static final String SCOPE = "bundle_defaults"; //$NON-NLS-1$ /** * Singleton instance of a Bundle Defaults Scope object. Typical usage is: * BundleDefaultsScope.INSTANCE.getNode(...); * * @since 3.4 */ public static final IScopeContext INSTANCE = new BundleDefaultsScope(); /** * Create and return a new default scope instance. * @deprecated use BundleDefaultsScope.INSTANCE instead */ public BundleDefaultsScope() { super(); } @Override public String getName() { return SCOPE; } @Override public IEclipsePreferences getNode(String qualifier) { return super.getNode(qualifier); } @Override public IPath getLocation() { // We don't persist defaults so return null. return null; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy