Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Question about IEditorRegistry

Hi, All

Can we implement a non-default editor plugin for any file? I set 'extensions="*"'in plugin.xml, but it doesn't work.

Now I know the relationship between filename and editor can be find in PlatformUI.getWorkbench().getEditorRegistry().getEditors(file.getName()). But I don't know how Eclipse collect the relationship information. Are there some callback utilities here? For example, Eclipse call a plugin's "Accept(IFile)" method and let the plugin itself determin if the plugin can accept this file.


Thanks a lot,
James Gan



Back to the top