Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Open Java Editor
Open Java Editor [message #603474] Sat, 21 November 2009 15:03
Vanessa Aline is currently offline Vanessa AlineFriend
Messages: 11
Registered: July 2009
Junior Member

I want to open a Java Editor with a given file. But I only got an
Default Text Editor. How can I get the Java Editor ID?

I am doing this:
if (workspaceResource instanceof IFile) {
IWorkbenchPage page = PlatformUI.getWorkbench()
return null != page.openEditor(new FileEditorInput(
(IFile) workspaceResource), "org.eclipse.ui.DefaultTextEditor");

Thanks in advance,
Vanessa Aline
Previous Topic:Need help in creating a P2 provisioned and custom branded Eclipse build
Next Topic:Open Java Editor
Goto Forum:

Current Time: Wed Aug 12 14:36:47 GMT 2020

Powered by FUDForum. Page generated in 0.01565 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top