Horje
How do I retrieve editors registered for a certain file extension in Eclipse? Code Example
How do I retrieve editors registered for a certain file extension in Eclipse?
IEditorRegistry registry = PlatformUI.getWorkbench().getEditorRegistry();
IEditorDescriptor [] desc = registry.getEditors("file name");
//The IEditorDescriptor contains the editor id which you can pass to 
//open of the openEditor methods of IWorkbenchPage

//If you want to open the same file in two editors at the same time 
public IEditorPart openEditor(final IEditorInput input,
         final String editorId, final boolean activate, final int matchFlags)
//Specify IWorkbenchPage.MATCH_NONE as the matchFlags to stop the search for an existing open editor.




Java

Related
java set get all not containing Code Example java set get all not containing Code Example
java use parent method Code Example java use parent method Code Example
Simple way to find if two different lists contain exactly the same elements? Code Example Simple way to find if two different lists contain exactly the same elements? Code Example
how to add a singleton hashset in java Code Example how to add a singleton hashset in java Code Example
pass a function as parameter Code Example pass a function as parameter Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9