KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > ISaveableFilter


1 /*******************************************************************************
2  * Copyright (c) 2007 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
12 package org.eclipse.ui;
13
14 /**
15  * A filter for selecting Saveables.
16  * @see IWorkbench#saveAll(org.eclipse.jface.window.IShellProvider, org.eclipse.jface.operation.IRunnableContext, ISaveableFilter, boolean)
17  * @since 3.3
18  */

19 public interface ISaveableFilter {
20     
21     /**
22      * Indicate whether the given saveable matches this filter.
23      * @param saveable the saveable being tested
24      * @param containingParts the parts that contain the saveable. This list may
25      * contain zero or more parts.
26      * @return whether the given saveable matches this filter
27      */

28     public boolean select(Saveable saveable, IWorkbenchPart[] containingParts);
29
30 }
31
Popular Tags