Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » surcharge the open file
surcharge the open file [message #328941] Sat, 07 June 2008 07:54 Go to next message
No real name is currently offline No real nameFriend
Messages: 64
Registered: July 2009
Member
hi all,

Always trying to make a plugin, I try to open an external file.

When Launch the plugin I have alwready a open file in file menu but when I
open a file, I have nothing, just an ERROR message in the editor.

I would like to know, is there any extensions to overright the openfile
action or I just have to make a action set call open file and the open
file in file will diseappear , replaced by mine?


thanks

a++
Re: surcharge the open file [message #328943 is a reply to message #328941] Sat, 07 June 2008 11:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

The problem with the open file action is that you (user) have little
control over which editor is opened. It will just open the default
editor for that file. There are bugzillas open for enhancing this, but
it's a tricky problem because until the file is selected, you can't
really provide reasonable editor choices, and the file open dialog isn't
extensible. Are you designing your own editor? Can you make it the
default for the type of file being opened? I'm not sure you can
override or specialize the open file action...

julien wrote:
> hi all,
> Always trying to make a plugin, I try to open an external file.
> When Launch the plugin I have alwready a open file in file menu but
> when I open a file, I have nothing, just an ERROR message in the editor.
>
> I would like to know, is there any extensions to overright the
> openfile action or I just have to make a action set call open file
> and the open file in file will diseappear , replaced by mine?
>
>
> thanks
>
> a++
>
Re: surcharge the open file [message #328944 is a reply to message #328943] Sat, 07 June 2008 14:56 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 64
Registered: July 2009
Member
hi,
Ed Merks a écrit :
> The problem with the open file action is that you (user) have little
> control over which editor is opened. It will just open the default
> editor for that file. There are bugzillas open for enhancing this, but
> it's a tricky problem because until the file is selected, you can't
> really provide reasonable editor choices, and the file open dialog isn't
> extensible. Are you designing your own editor?
yes, and in fact, I try to make a perpective like java (with less stuff)
for a new language. but this thing will be wait.

thanks

a++

Can you make it the
> default for the type of file being opened? I'm not sure you can
> override or specialize the open file action...
>
> julien wrote:
>> hi all,
>> Always trying to make a plugin, I try to open an external file.
>> When Launch the plugin I have alwready a open file in file menu but
>> when I open a file, I have nothing, just an ERROR message in the editor.
>>
>> I would like to know, is there any extensions to overright the
>> openfile action or I just have to make a action set call open file
>> and the open file in file will diseappear , replaced by mine?
>>
>>
>> thanks
>>
>> a++
>>
Re: surcharge the open file [message #328946 is a reply to message #328944] Sat, 07 June 2008 16:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

julien,

Keep in mind that if you use file open to open something in the file
system (I wonder if that's actually what you meant), the editor input
won't generally be an IFileEditorInput.


julien wrote:
> hi,
> Ed Merks a écrit :
>> The problem with the open file action is that you (user) have little
>> control over which editor is opened. It will just open the default
>> editor for that file. There are bugzillas open for enhancing this,
>> but it's a tricky problem because until the file is selected, you
>> can't really provide reasonable editor choices, and the file open
>> dialog isn't extensible. Are you designing your own editor?
> yes, and in fact, I try to make a perpective like java (with less
> stuff) for a new language. but this thing will be wait.
>
> thanks
>
> a++
>
> Can you make it the
>> default for the type of file being opened? I'm not sure you can
>> override or specialize the open file action...
>>
>> julien wrote:
>>> hi all,
>>> Always trying to make a plugin, I try to open an external file.
>>> When Launch the plugin I have alwready a open file in file menu but
>>> when I open a file, I have nothing, just an ERROR message in the
>>> editor.
>>>
>>> I would like to know, is there any extensions to overright the
>>> openfile action or I just have to make a action set call open file
>>> and the open file in file will diseappear , replaced by mine?
>>>
>>>
>>> thanks
>>>
>>> a++
>>>
Re: surcharge the open file [message #328947 is a reply to message #328946] Sat, 07 June 2008 17:22 Go to previous message
No real name is currently offline No real nameFriend
Messages: 64
Registered: July 2009
Member
Ed Merks a écrit :
> julien,
>
> Keep in mind that if you use file open to open something in the file
> system (I wonder if that's actually what you meant), the editor input
> won't generally be an IFileEditorInput.
>
>
oki thanks.

> julien wrote:
>> hi,
>> Ed Merks a écrit :
>>> The problem with the open file action is that you (user) have little
>>> control over which editor is opened. It will just open the default
>>> editor for that file. There are bugzillas open for enhancing this,
>>> but it's a tricky problem because until the file is selected, you
>>> can't really provide reasonable editor choices, and the file open
>>> dialog isn't extensible. Are you designing your own editor?
>> yes, and in fact, I try to make a perpective like java (with less
>> stuff) for a new language. but this thing will be wait.
>>
>> thanks
>>
>> a++
>>
>> Can you make it the
>>> default for the type of file being opened? I'm not sure you can
>>> override or specialize the open file action...
>>>
>>> julien wrote:
>>>> hi all,
>>>> Always trying to make a plugin, I try to open an external file.
>>>> When Launch the plugin I have alwready a open file in file menu but
>>>> when I open a file, I have nothing, just an ERROR message in the
>>>> editor.
>>>>
>>>> I would like to know, is there any extensions to overright the
>>>> openfile action or I just have to make a action set call open file
>>>> and the open file in file will diseappear , replaced by mine?
>>>>
>>>>
>>>> thanks
>>>>
>>>> a++
>>>>
Previous Topic:Eclipse 3.4 and PDE: Cannot resolve installed plugins.
Next Topic:[HELP] add template formatting in javaeditor exemple(always)
Goto Forum:
  


Current Time: Wed Jul 17 19:25:47 GMT 2024

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

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

Back to the top