Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » help on SaveAs
help on SaveAs [message #33644] Mon, 23 March 2009 16:18 Go to next message
Carmelo  is currently offline 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 #33909 is a reply to message #33644] Thu, 26 March 2009 00:35 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 984
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 #34056 is a reply to message #33909] Thu, 26 March 2009 15:57 Go to previous message
Carmelo  is currently offline 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] Thu, 26 March 2009 00:35 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 984
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 15:57 Go to previous message
Carmelo  is currently offline 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
>>
>>
>>
Previous Topic:Active Project Handling - Howto
Next Topic:serverPortRange recommendation
Goto Forum:
  


Current Time: Sat Oct 25 10:23:50 GMT 2014

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

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