| help on SaveAs [message #33644] |
Mon, 23 March 2009 12:18  |
Carmelo Messages: 224 Registered: July 2009 |
Senior Member |
|
|
Hi all
I'm using the subsystem I created to populate my own rcp ...
I more or less recreated the SystemEditableRemoteFile to open a file ...
works fine if I have to just open / save / close the file ....
but
what is the right way to deal with the save as action ...
right now if I have an editor opened the action from the File menu
File/"Save As" fails with an exception
what is the right way to call the saveas from the
eomsystemeditableremotefile ...
any help will be appreciated ...
thanks
kar
|
|
|
|
| Re: help on SaveAs [message #34056 is a reply to message #33909] |
Thu, 26 March 2009 11:57  |
Carmelo Messages: 224 Registered: July 2009 |
Senior Member |
|
|
Hi Martin,
got the problem ...
org.eclipse.ui.dialogs;
public class SaveAsDialog extends TitleAreaDialog {
dlgTitleImage = IDEInternalWorkbenchImages.getImageDescriptor(
IDEInternalWorkbenchImages.IMG_DLGBAN_SAVEAS_DLG).createImag e();
guess I'm doing something wrong in the way I create my rcp application ...
clearly the XMLMultiPageEditorPart (or any editor) when I do the save as
from the file menu will call the save as dialog ... and this return a null
pointer exception during the IDEInternalworkbenchimage ...
I believe the workspace is not properly initialized somewhere
will see if I can find what I need to do ..
Thanks
"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:49CACDE4.3000605@windriver.com...
> Hi Kar,
>
> Since I assume you copied SystemEditableRemoteFile.saveAs()
> which is working in RSE but not in your app, I'm afraid
> that you need to debug this yourself...
>
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Kar wrote:
>> Hi all
>> I'm using the subsystem I created to populate my own rcp ...
>>
>> I more or less recreated the SystemEditableRemoteFile to open a file ...
>> works fine if I have to just open / save / close the file ....
>> but
>>
>> what is the right way to deal with the save as action ...
>> right now if I have an editor opened the action from the File menu
>> File/"Save As" fails with an exception
>>
>> what is the right way to call the saveas from the
>> eomsystemeditableremotefile ...
>>
>> any help will be appreciated ...
>> thanks
>> kar
>>
>>
>>
|
|
|
| Re: help on SaveAs [message #580116 is a reply to message #33644] |
Wed, 25 March 2009 20:35  |
Martin Oberhuber Messages: 967 Registered: July 2009 |
Senior Member |
|
|
Hi Kar,
Since I assume you copied SystemEditableRemoteFile.saveAs()
which is working in RSE but not in your app, I'm afraid
that you need to debug this yourself...
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Kar wrote:
> Hi all
> I'm using the subsystem I created to populate my own rcp ...
>
> I more or less recreated the SystemEditableRemoteFile to open a file ...
> works fine if I have to just open / save / close the file ....
> but
>
> what is the right way to deal with the save as action ...
> right now if I have an editor opened the action from the File menu
> File/"Save As" fails with an exception
>
> what is the right way to call the saveas from the
> eomsystemeditableremotefile ...
>
> any help will be appreciated ...
> thanks
> kar
>
>
>
|
|
|
| Re: help on SaveAs [message #580141 is a reply to message #33909] |
Thu, 26 March 2009 11:57  |
Carmelo Messages: 224 Registered: July 2009 |
Senior Member |
|
|
Hi Martin,
got the problem ...
org.eclipse.ui.dialogs;
public class SaveAsDialog extends TitleAreaDialog {
dlgTitleImage = IDEInternalWorkbenchImages.getImageDescriptor(
IDEInternalWorkbenchImages.IMG_DLGBAN_SAVEAS_DLG).createImag e();
guess I'm doing something wrong in the way I create my rcp application ...
clearly the XMLMultiPageEditorPart (or any editor) when I do the save as
from the file menu will call the save as dialog ... and this return a null
pointer exception during the IDEInternalworkbenchimage ...
I believe the workspace is not properly initialized somewhere
will see if I can find what I need to do ..
Thanks
"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:49CACDE4.3000605@windriver.com...
> Hi Kar,
>
> Since I assume you copied SystemEditableRemoteFile.saveAs()
> which is working in RSE but not in your app, I'm afraid
> that you need to debug this yourself...
>
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Kar wrote:
>> Hi all
>> I'm using the subsystem I created to populate my own rcp ...
>>
>> I more or less recreated the SystemEditableRemoteFile to open a file ...
>> works fine if I have to just open / save / close the file ....
>> but
>>
>> what is the right way to deal with the save as action ...
>> right now if I have an editor opened the action from the File menu
>> File/"Save As" fails with an exception
>>
>> what is the right way to call the saveas from the
>> eomsystemeditableremotefile ...
>>
>> any help will be appreciated ...
>> thanks
>> kar
>>
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.01552 seconds