Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » mapping of object database - edit with external editor
mapping of object database - edit with external editor [message #31093] Tue, 13 January 2009 10:51 Go to next message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi all,
I have created my remote system mapping for an Object Db (I have based the
code on the ftp service and subsystem example)
I can displays all my files correctly in the remote system view ... now I
have got a problem


- EDIT with outside editor

a) first step download the content (no problem)
b) during the save I have no control on the file ...
c) I close the editor ... what can I do to check the file and sync with the
db?


Thanks
Kar
Re: mapping of object database - edit with external editor [message #31127 is a reply to message #31093] Tue, 13 January 2009 21:15 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Kar,

is this just rephrasing your previous question, or is this a slightly
different issue? I'm afraid that I don't understand your problem, could
you explain again?

Is it that you need some kind of callback when the upload/save operation
is finished, such that you could perform the required "checkin" operation?


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 have created my remote system mapping for an Object Db (I have based
> the code on the ftp service and subsystem example)
> I can displays all my files correctly in the remote system view ... now
> I have got a problem
>
>
> - EDIT with outside editor
>
> a) first step download the content (no problem)
> b) during the save I have no control on the file ...
> c) I close the editor ... what can I do to check the file and sync with
> the db?
>
>
> Thanks
> Kar
>
>
Re: mapping of object database - edit with external editor [message #31163 is a reply to message #31127] Wed, 14 January 2009 08:58 Go to previous messageGo to next message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi Martin ...
sorry if I have not been clear ...
they are two different questions ...

the point is that I need to:
- check out the file when I open the editor (ok I can do it on the download
bit)
- save the content each time the save button is pressed (and this can be
done on the upload)
- check in the file when the editor is closed .... and here I'm not sure if
I can rely on the editor close (I have to be sure that this event will be
fired after the upload ... so I can upload / save the document and
afterwards check in the document to unlock it)

this is what I can see during the procedure of using an internal editor ...

-----

the second problem is ...
when I open a file using an external editor to eclipse (let's say word or
any other editor) is there any way to know when the editor will be closed
and above all what is the right operation to start to sync the temp file
with the one in the db ...

Many thanks
Kar




"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:496D0461.5090206@windriver.com...
> Hello Kar,
>
> is this just rephrasing your previous question, or is this a slightly
> different issue? I'm afraid that I don't understand your problem, could
> you explain again?
>
> Is it that you need some kind of callback when the upload/save operation
> is finished, such that you could perform the required "checkin" operation?
>
>
> 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 have created my remote system mapping for an Object Db (I have based
>> the code on the ftp service and subsystem example)
>> I can displays all my files correctly in the remote system view ... now I
>> have got a problem
>>
>>
>> - EDIT with outside editor
>>
>> a) first step download the content (no problem)
>> b) during the save I have no control on the file ...
>> c) I close the editor ... what can I do to check the file and sync with
>> the db?
>>
>>
>> Thanks
>> Kar
>>
>>
Re: mapping of object database - edit with external editor [message #31196 is a reply to message #31163] Wed, 14 January 2009 17:13 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Kar,

this may not be the answer that you're looking for, but why
don't you make the "checkin" operation explicit?

With external editors at least, I cannot see how you could
auto-detect that the user is finished with his work, so I
cannot see any other way that providing an explicit "checkin"
operation.

Your whole usability story could actually be similar to CVS,
SVN and the like: check out, edit, synchronize, check in...
perhaps you'll not want RSE after all but a Team Provider
integration?

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 Martin ...
> sorry if I have not been clear ...
> they are two different questions ...
>
> the point is that I need to:
> - check out the file when I open the editor (ok I can do it on the
> download bit)
> - save the content each time the save button is pressed (and this can be
> done on the upload)
> - check in the file when the editor is closed .... and here I'm not
> sure if I can rely on the editor close (I have to be sure that this
> event will be fired after the upload ... so I can upload / save the
> document and afterwards check in the document to unlock it)
>
> this is what I can see during the procedure of using an internal editor ...
>
> -----
> the second problem is ...
> when I open a file using an external editor to eclipse (let's say word
> or any other editor) is there any way to know when the editor will be
> closed and above all what is the right operation to start to sync the
> temp file with the one in the db ...
>
> Many thanks
> Kar
>
>
>
>
> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
> news:496D0461.5090206@windriver.com...
>> Hello Kar,
>>
>> is this just rephrasing your previous question, or is this a slightly
>> different issue? I'm afraid that I don't understand your problem,
>> could you explain again?
>>
>> Is it that you need some kind of callback when the upload/save
>> operation is finished, such that you could perform the required
>> "checkin" operation?
>>
>>
>> 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 have created my remote system mapping for an Object Db (I have
>>> based the code on the ftp service and subsystem example)
>>> I can displays all my files correctly in the remote system view ...
>>> now I have got a problem
>>>
>>>
>>> - EDIT with outside editor
>>>
>>> a) first step download the content (no problem)
>>> b) during the save I have no control on the file ...
>>> c) I close the editor ... what can I do to check the file and sync
>>> with the db?
>>>
>>>
>>> Thanks
>>> Kar
>>>
>>>
Re: mapping of object database - edit with external editor [message #578614 is a reply to message #31093] Tue, 13 January 2009 21:15 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Kar,

is this just rephrasing your previous question, or is this a slightly
different issue? I'm afraid that I don't understand your problem, could
you explain again?

Is it that you need some kind of callback when the upload/save operation
is finished, such that you could perform the required "checkin" operation?


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 have created my remote system mapping for an Object Db (I have based
> the code on the ftp service and subsystem example)
> I can displays all my files correctly in the remote system view ... now
> I have got a problem
>
>
> - EDIT with outside editor
>
> a) first step download the content (no problem)
> b) during the save I have no control on the file ...
> c) I close the editor ... what can I do to check the file and sync with
> the db?
>
>
> Thanks
> Kar
>
>
Re: mapping of object database - edit with external editor [message #578627 is a reply to message #31127] Wed, 14 January 2009 08:58 Go to previous message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi Martin ...
sorry if I have not been clear ...
they are two different questions ...

the point is that I need to:
- check out the file when I open the editor (ok I can do it on the download
bit)
- save the content each time the save button is pressed (and this can be
done on the upload)
- check in the file when the editor is closed .... and here I'm not sure if
I can rely on the editor close (I have to be sure that this event will be
fired after the upload ... so I can upload / save the document and
afterwards check in the document to unlock it)

this is what I can see during the procedure of using an internal editor ...

-----

the second problem is ...
when I open a file using an external editor to eclipse (let's say word or
any other editor) is there any way to know when the editor will be closed
and above all what is the right operation to start to sync the temp file
with the one in the db ...

Many thanks
Kar




"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:496D0461.5090206@windriver.com...
> Hello Kar,
>
> is this just rephrasing your previous question, or is this a slightly
> different issue? I'm afraid that I don't understand your problem, could
> you explain again?
>
> Is it that you need some kind of callback when the upload/save operation
> is finished, such that you could perform the required "checkin" operation?
>
>
> 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 have created my remote system mapping for an Object Db (I have based
>> the code on the ftp service and subsystem example)
>> I can displays all my files correctly in the remote system view ... now I
>> have got a problem
>>
>>
>> - EDIT with outside editor
>>
>> a) first step download the content (no problem)
>> b) during the save I have no control on the file ...
>> c) I close the editor ... what can I do to check the file and sync with
>> the db?
>>
>>
>> Thanks
>> Kar
>>
>>
Re: mapping of object database - edit with external editor [message #578640 is a reply to message #31163] Wed, 14 January 2009 17:13 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Kar,

this may not be the answer that you're looking for, but why
don't you make the "checkin" operation explicit?

With external editors at least, I cannot see how you could
auto-detect that the user is finished with his work, so I
cannot see any other way that providing an explicit "checkin"
operation.

Your whole usability story could actually be similar to CVS,
SVN and the like: check out, edit, synchronize, check in...
perhaps you'll not want RSE after all but a Team Provider
integration?

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 Martin ...
> sorry if I have not been clear ...
> they are two different questions ...
>
> the point is that I need to:
> - check out the file when I open the editor (ok I can do it on the
> download bit)
> - save the content each time the save button is pressed (and this can be
> done on the upload)
> - check in the file when the editor is closed .... and here I'm not
> sure if I can rely on the editor close (I have to be sure that this
> event will be fired after the upload ... so I can upload / save the
> document and afterwards check in the document to unlock it)
>
> this is what I can see during the procedure of using an internal editor ...
>
> -----
> the second problem is ...
> when I open a file using an external editor to eclipse (let's say word
> or any other editor) is there any way to know when the editor will be
> closed and above all what is the right operation to start to sync the
> temp file with the one in the db ...
>
> Many thanks
> Kar
>
>
>
>
> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
> news:496D0461.5090206@windriver.com...
>> Hello Kar,
>>
>> is this just rephrasing your previous question, or is this a slightly
>> different issue? I'm afraid that I don't understand your problem,
>> could you explain again?
>>
>> Is it that you need some kind of callback when the upload/save
>> operation is finished, such that you could perform the required
>> "checkin" operation?
>>
>>
>> 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 have created my remote system mapping for an Object Db (I have
>>> based the code on the ftp service and subsystem example)
>>> I can displays all my files correctly in the remote system view ...
>>> now I have got a problem
>>>
>>>
>>> - EDIT with outside editor
>>>
>>> a) first step download the content (no problem)
>>> b) during the save I have no control on the file ...
>>> c) I close the editor ... what can I do to check the file and sync
>>> with the db?
>>>
>>>
>>> Thanks
>>> Kar
>>>
>>>
Previous Topic:mapping of object db - edit problem
Next Topic:how to delete remote working folder ...
Goto Forum:
  


Current Time: Wed Apr 24 23:50:24 GMT 2024

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

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

Back to the top