Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Interface IEditorMatchingStrategy

public interface IEditorMatchingStrategy

An editor matching strategy allows editor extensions to provide their own algorithm for matching the input of an open editor of that type to a given editor input. This is used to find a matching editor during IWorkbenchPage.openEditor(IEditorInput, String, boolean) and IWorkbenchPage.findEditor(IEditorInput).


Method Summary
 boolean matches ( IEditorReference editorRef, IEditorInput input)
          Returns whether the editor represented by the given editor reference matches the given editor input.

Method Detail


boolean matches(
IEditorReference editorRef,
IEditorInput input)
Returns whether the editor represented by the given editor reference matches the given editor input.

Implementations should inspect the given editor input first, and try to reject it early before calling IEditorReference.getEditorInput(), since that method may be expensive.

editorRef - the editor reference to match against
input - the editor input to match
true if the editor matches the given editor input, false if it does not match

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire