Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » IWorkbenchPage.findEditor() returns null
IWorkbenchPage.findEditor() returns null [message #85221] Mon, 30 June 2003 08:12 Go to next message
Eclipse UserFriend
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 12:36 Go to previous message
Eclipse UserFriend
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: Mon Apr 28 03:00:04 EDT 2025

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

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

Back to the top