Home » Eclipse Projects » Eclipse Platform » surcharge the open file
|
Re: surcharge the open file [message #328943 is a reply to message #328941] |
Sat, 07 June 2008 11:17 |
Eclipse User |
|
|
|
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 |
No real name 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 |
Eclipse User |
|
|
|
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 |
No real name 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++
>>>>
|
|
|
Goto Forum:
Current Time: Sun Oct 20 02:04:31 GMT 2024
Powered by FUDForum. Page generated in 0.03162 seconds
|