KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > core > mapping > IStreamMergerDelegate


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.team.internal.core.mapping;
12
13 import org.eclipse.core.resources.IStorage;
14 import org.eclipse.team.core.mapping.IStorageMerger;
15
16 /**
17  * Interface that allows the {@link DelegatingStorageMerger} to
18  * delegate to IStreamMergers. We need an interface so the UI can
19  * provide the implementation.
20  */

21 public interface IStreamMergerDelegate {
22     /**
23      * Find a storage merger for the given target.
24      * A storage merger will only be returned if
25      * there is a stream merger that matches the
26      * targets content type or extension.
27      *
28      * @param target the input storage
29      * @return a storage merger for the given target
30      */

31     IStorageMerger findMerger(IStorage target);
32 }
Popular Tags