Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » wizard fails to create new editor plugin(Indigo creates a plugin which it cannot run)
wizard fails to create new editor plugin [message #885967] Thu, 14 June 2012 00:19 Go to next message
Michael Mounteney is currently offline Michael MounteneyFriend
Messages: 3
Registered: June 2012
Junior Member
Hello, I'm playing around with plugins.

Indigo (3.7.2) on OpenSolaris x86 +GTK.

The New Project wizard provides for the creation of a new editor plugin; however, the plugin does not work owing to a run-time error.

In org.eclipse.ui.ide.FileStoreEditorInputFactory (78), a new FileStoreEditorInput object is created. However, org.eclipse.ui.editors.text.StorageDocumentProvider (409) returns null because a FileStoreEditorInput does not implement IStorageEditorInput.

It's easy to see that that is the problem but I don't know enough about the plugin to know how to fix it. I don't really want to become an expert on plugin architecture as that is peripheral to my main task.

Any ideas on where to start to work out what is supposed to be going on here ?

Thanks, Michael.

[Updated on: Thu, 14 June 2012 00:54]

Report message to a moderator

Re: wizard fails to create new editor plugin [message #886082 is a reply to message #885967] Thu, 14 June 2012 08:03 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 14.06.2012 02:19, Michael Mounteney wrote:
> Hello, I'm playing around with plugins.
>
> Indigo (3.7.2) on OpenSolaris x86 +GTK.
>
> The New Project wizard provides for the creation of a new editor plugin;
Which wizard did you choose? Please provide more details.

Dani
> however, the plugin does not work owing to a run-time error.
>
> In org.eclipse.ui.ide.FileStoreEditorInputFactory (78), a new
> FileStoreEditorInput object is created. However,
> org.eclipse.ui.editors.text.StorageDocumentProvider (227) returns null
> because a FileStoreEditorInput does not implement IEditorInput.
>
> It's easy to see that that is the problem but I don't know enough
> about the plugin to know how to fix it. I don't really want to become
> an expert on plugin architecture as that is peripheral to my main task.
>
> Any ideas on where to start to work out what is supposed to be going
> on here ?
>
> Thanks, Michael.
Re: wizard fails to create new editor plugin [message #886416 is a reply to message #886082] Thu, 14 June 2012 22:03 Go to previous messageGo to next message
Michael Mounteney is currently offline Michael MounteneyFriend
Messages: 3
Registered: June 2012
Junior Member
File / New / Plug-in Project, dialog appears.

Enter project name and click the Next button.

Enter provider name and click the Next button.

Check 'Create a plug-in using one of the templates' and click 'Plug-in with an editor'. Click the Next button.

Click the Finish button.
Re: wizard fails to create new editor plugin [message #886645 is a reply to message #886416] Fri, 15 June 2012 11:05 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 15.06.2012 00:03, Michael Mounteney wrote:
> File / New / Plug-in Project, dialog appears.
>
> Enter project name and click the Next button.
>
> Enter provider name and click the Next button.
>
> Check 'Create a plug-in using one of the templates' and click 'Plug-in
> with an editor'. Click the Next button.
>
> Click the Finish button.
That works fine for me using 3.8 or 4.2 RC4.

Dani
Re: wizard fails to create new editor plugin [message #888221 is a reply to message #886645] Sun, 17 June 2012 21:58 Go to previous messageGo to next message
Michael Mounteney is currently offline Michael MounteneyFriend
Messages: 3
Registered: June 2012
Junior Member
The creation works fine for me as well but do the plug-ins run correctly on 3.8 and 4.2RC4 ?

In plugin.xml, plugin/extension/editor/extensions="exml" and I copied an xml file to something.exml and opened it via File / Open File.

[Later] The problem was that I was using File / Open File ... to open a file outside the workspace. This creates a FileStoreEditorInput object which the wizard code doesn't handle properly. If you open a file inside another project, it works fine. Evil or Very Mad

[Updated on: Mon, 18 June 2012 02:10]

Report message to a moderator

Re: wizard fails to create new editor plugin [message #888602 is a reply to message #888221] Mon, 18 June 2012 10:56 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 17.06.2012 23:58, Michael Mounteney wrote:
> The creation works fine for me as well but do the plug-ins run
> correctly on 3.8 and 4.2RC4 ?
Yes, it works fine. But keep in mind that this is only a very simple
editor example which can only open files that are located inside a project.

Dani
Previous Topic:How To Make Feature Requests?
Next Topic:importing WEKA PACKAGE
Goto Forum:
  


Current Time: Thu Apr 25 16:46:56 GMT 2024

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

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

Back to the top