-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from eclipse/issues_137
Issues 137
- Loading branch information
Showing
4 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...clipse.richbeans.widgets.file/src/org/eclipse/richbeans/widgets/table/SeriesItemView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/*- | ||
* Copyright (c) 2012 Diamond Light Source Ltd. | ||
* | ||
* 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 | ||
*/ | ||
package org.eclipse.richbeans.widgets.table; | ||
|
||
import java.util.function.Predicate; | ||
|
||
/** | ||
* | ||
* A view whose main contant is a SeriesTable may optionally implement this | ||
* interface. This allows other views to interact with the items in the view. | ||
* | ||
* It is something of a back door and should be used with caution. Instead | ||
* normal RCP selection events should be used to communicate between views | ||
* or a proper controller pattern. However in the cases where a series view | ||
* should be searched for and changed, this interface can be used to avoid | ||
* depending on the concrete part. | ||
* | ||
* @author Matthew Gerring | ||
* | ||
*/ | ||
public interface SeriesItemView { | ||
|
||
/** | ||
* Test if the items in the series table | ||
* @param class1 | ||
* @return | ||
*/ | ||
<T> boolean isSeriesOf(Class<T> class1); | ||
|
||
/** | ||
* Searchs for the first ISeriesItemDescriptor matching the defined predicate. | ||
* @param predicate | ||
* @return | ||
*/ | ||
ISeriesItemDescriptor find(Predicate<ISeriesItemDescriptor> predicate); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters