FormEditor receiving NULL IEditorInput object

Posted by Gabriel Parenza on Stack Overflow See other posts from Stack Overflow or by Gabriel Parenza
Published on 2010-04-20T00:49:14Z Indexed on 2010/04/20 0:53 UTC
Read the original article Hit count: 348

Filed under:

Hi,

I have extended IEditorInput class to define my own IEditorInput object. Furthermore, I have extended FormEditor class. I have view where I am displaying my application objects. Whenever user double clicks on items on view, I intend to display more details for this application object on the editor, which is a FormEditor. Problem I am facing is that I am receiving IEditorInput object as NULL inside extended FormEditor class. Can someone please tell me what I am doing wrong?

Code: CustomFormEditor extends FormEditor CustomEditorInput extends IEditorInput

In View class: PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(new CustomEditorInput("test"),"editor.id");

Thanks, Gaurav.

© Stack Overflow or respective owner

Related posts about eclipse