Package de.loskutov.anyedit
Interface IOpenEditorsParticipant
-
- All Superinterfaces:
IOpenEditorParticipant
- All Known Implementing Classes:
DefaultOpenEditorParticipant
public interface IOpenEditorsParticipant extends IOpenEditorParticipant
An extension to theIOpenEditorParticipant
, which is capable to guess multiple files
-
-
Field Summary
-
Fields inherited from interface de.loskutov.anyedit.IOpenEditorParticipant
PRIO_DEFAULT, PRIO_HIGH, PRIO_LOW
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<org.eclipse.core.resources.IFile>
guessFiles(org.eclipse.jface.text.IDocument doc, org.eclipse.jface.viewers.ISelectionProvider selectionProvider, org.eclipse.ui.IEditorInput currentInput, org.eclipse.ui.IWorkbenchPart currentPart)
Try to guess multiple files in given context-
Methods inherited from interface de.loskutov.anyedit.IOpenEditorParticipant
getPriority, guessFile, guessLine, openEditor
-
-
-
-
Method Detail
-
guessFiles
java.util.List<org.eclipse.core.resources.IFile> guessFiles(org.eclipse.jface.text.IDocument doc, org.eclipse.jface.viewers.ISelectionProvider selectionProvider, org.eclipse.ui.IEditorInput currentInput, org.eclipse.ui.IWorkbenchPart currentPart) throws org.eclipse.core.runtime.OperationCanceledException
Try to guess multiple files in given context- Parameters:
doc
- document with possible editor/file reference, might be nullselectionProvider
- selection in the document, might be null or emptycurrentInput
- document input, might be nullcurrentPart
- current part, if any (might be null)- Returns:
- empty list if no file information was found, otherwise the list of guessed files, never null
- Throws:
org.eclipse.core.runtime.OperationCanceledException
- if user decided to cancel operation
-
-