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

org.eclipse.ui.services.IServiceWithSources Maven / Gradle / Ivy

Go to download

This plug-in contains the bulk of the Workbench implementation, and depends on JFace, SWT, and Core Runtime. It cannot be used independently from org.eclipse.ui. Workbench client plug-ins should not depend directly on this plug-in.

The newest version!
/*******************************************************************************
 * Copyright (c) 2005, 2006 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.ui.services;

import org.eclipse.ui.ISourceProvider;

/**
 * 

* A service that responds to changes in one or more sources. These sources can * be plugged into the service. Sources represent a common event framework for * services. *

*

* Clients must not extend or implement. *

* * @since 3.2 */ public interface IServiceWithSources extends IDisposable { /** * Adds a source provider to this service. A source provider will notify the * service when the source it provides changes. An example of a source might * be an active editor or the current selection. This amounts to a pluggable * state tracker for the service. * * @param provider * The provider to add; must not be null. */ public void addSourceProvider(ISourceProvider provider); /** * Removes a source provider from this service. Most of the time, this * method call is not required as source providers typically share the same * life span as the workbench itself. * * @param provider * The provider to remove; must not be null. */ public void removeSourceProvider(ISourceProvider provider); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy