Synchronous processing of the two If we modify the source code in JBULDER, or change the design idea in TOGETHER, draw a new class map, what happens? Let's take a look at first: Let's look at the class maps in Together. After reading the class diagram, we start modifying.
We can see that there are only two classes in this project, one is mythread, inheriting from the Thread class, implemented a Run method, there is a public contructor, another Hello class, there is a main method, it launched two in the main method A Mythread thread. Ok, now we can enter the next step, modify it in JBuilder, my idea is to add a Property (Name) in the Mythread class, there is a GET, SET method. This is very easy to do in JBuilder. Figure:
After this OK, there is a new Property and GET, SET method in the source code of Mythread class, then we modify the Mythread class, can TOGETHER know, how does its view synchronize with our modification? Do you want to modify the view of the Mythread class in TOGETHER? That thing is really a nightmare. However, you don't have to be afraid, Borland will not let you down, I am going to see what happened in Together, so I opened together, what happened: a progress bar in the lower right corner showed Synchronzing ..., but This process only spent 2,3 seconds, and then this is like this.
Everyone saw it, TOGETHER automatically synchronized this class, and its property list has appeared in the property added. Yes, now continue: I delete the properties we just added in Together, then add a new method Test, as shown:
Now look at what happened in jbuilder:
Sure enough, it changed accordingly. In short, we can rest assured that we can work in these two weapons, no matter who has changed, we can see the corresponding changes. Of course, this feature is just a small function in TogetherJbe. Behind I will introduce more powerful features.
I will introduce in TOGETHER in the future.
---------------------------------
Disclaimer: The copyright and interpretation right of this article belongs to Zhao Talent, if you need to reprint, please keep your full content and this statement.
E-mail: vipcowrie@sina.com