BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Synchronizing Source Codes

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Amir Pashazadeh
Guest





PostPosted: Fri Jun 27, 2003 9:59 am    Post subject: Synchronizing Source Codes Reply with quote



Hi,

I used to use IntelliJ IDEA for a long time, now I want to use JBuilder 8
Enterprise (not as a replacement, but as a companion).
IntelliJ IDEA saves any changed file on deactivation, and loads any changed
file on activation, (it synchronizes sources with external changes), but I
can't find any option in JBuilder to do so.

Even after pressing refresh button on top of package browser in JBuilder it
takes some minutes to see the changes in IntelliJ IDEA, how can I solve this
problem? (please don't tell me stop using IntelliJ IDEA)

The problem is more when a file which is opened in JBuilder is edited in
IDEA. Then sometimes JBuilder rewrites its old version of source code on
edited one, and changes I made in IntelliJ are lost :(

The same problem (too slow or sometimes never synchronization with external
changes) also occures when I check-in or check-out files in Visual
SourceSafe, and again it takes a long time for JBuilder to recognize that
the source file is or is not read-only.

How can I force JBuilder to synchronize loaded files each time it activates,
and store modified files each time it deactivates?

Amir Pashazadeh




Back to top
Amir Pashazadeh
Guest





PostPosted: Mon Jun 30, 2003 9:59 pm    Post subject: Re: Synchronizing Source Codes Reply with quote



Well, there could be an option for this feature, such as some othe
applications have.
Together Control Center has this option, but it doesn't work same as IDEA.
When I change something in Together Control Center and change focus to IDEA
usually the IDEA doesn't recognize the changes, but when switching back to
Together Control Center, and switching back to IDEA again the changes are
seen.

Now according to your comments I understand why this is the way, but I don't
know why JBuilder developers didn't add the same feature as Together Control
Center?

Amir Pashazadeh


"Bill Joy" <wcjoy (AT) pacbell (DOT) net> wrote

Quote:
Unfortunately there is a Java problem in that the
WindowListener.windowDeactivated() event is synthetic -- the JDK
generates it upon focus lost.

Therefore it is impossible to save the file you are editing from a Java
application before another application gets focus.

Unless IDEA is using some native helper, perhaps this is what is
happening -- IDEA saves the file after JBuilder gets focus and does its
check for external modification. If you then do a save from JBuilder,
it will overwrite the existing image on disk which IDEA wrote too late.

This problem is why JBuilder does not have an option to save file on
losing focus.

You might try clicking on the Content Pane tab of another open file
before switching to IDEA. When you return to JBuilder you should be
able to see the modified file from IDEA when you click back on its tab
to activate the Editor.

FYI the Refresh button you are talking about in the Project Pane only
causes directories to be re-scanned, it has nothing to do with files
being edited in the Content Pane.


"Amir Pashazadeh" <pasha (AT) abdnet (DOT) com> wrote in message
news:bdh152$t2gu7$2 (AT) ID-170682 (DOT) news.dfncis.de...
Hi,

I used to use IntelliJ IDEA for a long time, now I want to use
JBuilder 8
Enterprise (not as a replacement, but as a companion).
IntelliJ IDEA saves any changed file on deactivation, and loads any
changed
file on activation, (it synchronizes sources with external changes),
but I
can't find any option in JBuilder to do so.

Even after pressing refresh button on top of package browser in
JBuilder it
takes some minutes to see the changes in IntelliJ IDEA, how can I
solve this
problem? (please don't tell me stop using IntelliJ IDEA)

The problem is more when a file which is opened in JBuilder is edited
in
IDEA. Then sometimes JBuilder rewrites its old version of source code
on
edited one, and changes I made in IntelliJ are lost :(

The same problem (too slow or sometimes never synchronization with
external
changes) also occures when I check-in or check-out files in Visual
SourceSafe, and again it takes a long time for JBuilder to recognize
that
the source file is or is not read-only.

How can I force JBuilder to synchronize loaded files each time it
activates,
and store modified files each time it deactivates?

Amir Pashazadeh









Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.