Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » IWorkbenchPage.findEditor() returns null
IWorkbenchPage.findEditor() returns null [message #85221] Mon, 30 June 2003 12:12 Go to next message
Asaf is currently offline AsafFriend
Messages: 59
Registered: July 2009
Member
Hello group. I have build editor extension for files ends with *.aaa
When starting platform when file.aaa is selected in ResourceNavigator the i
see in debbuger that
IWorkbenchPage.findEditor(new FileEditorInput(["file.aaa"])) returns null.

Adding plugin early startup: <extension point="org.eclipse.ui.startup"/>
doesn't help.

here is extension:
<extension point="org.eclipse.ui.editors">
<editor
name="My Editor"
extensions="aaa"
icon="icons/1.gif"
class="proj1.editors.MyEditor"
id="proj1.editors.MyEditor">
</editor>
</extension>

What do I get worng ?
Many thanks,
Asaf
Re: IWorkbenchPage.findEditor() returns null [message #85511 is a reply to message #85221] Mon, 30 June 2003 16:36 Go to previous message
Asaf is currently offline AsafFriend
Messages: 59
Registered: July 2009
Member
I usally not regular to answer myself through news groups, but I assume that
this will help others.
When plug is defined and later on Workbench cannot find it its because
during runtime usally in createPartControl() there was some runtime
exception or other views involeved with it caused exception.

Platform error dialogs not nessosarly point the problem sorce, nor the log
file.
Cheers,
Asaf





"Asaf" <asafr@cerylion.net> wrote in message
news:bdp61t$edk$1@rogue.oti.com...
> Hello group. I have build editor extension for files ends with *.aaa
> When starting platform when file.aaa is selected in ResourceNavigator the
i
> see in debbuger that
> IWorkbenchPage.findEditor(new FileEditorInput(["file.aaa"])) returns null.
>
> Adding plugin early startup: <extension
point="org.eclipse.ui.startup"/>
> doesn't help.
>
> here is extension:
> <extension point="org.eclipse.ui.editors">
> <editor
> name="My Editor"
> extensions="aaa"
> icon="icons/1.gif"
> class="proj1.editors.MyEditor"
> id="proj1.editors.MyEditor">
> </editor>
> </extension>
>
> What do I get worng ?
> Many thanks,
> Asaf
>
>
>
Previous Topic:eek!: can't find project using launcher :/
Next Topic:eclipse BoFs in July: OSCON, Portland and ECOOP, Darmstadt
Goto Forum:
  


Current Time: Thu Dec 26 19:26:47 GMT 2024

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

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

Back to the top