- add a comment (ex: user@host, inria-gforge-key)
- choose a lengthy passphrase in the Passphrase field and confirm it in the Confirm passphrase field.
Tuesday, March 6, 2012
How to configure Eclipse to use SSH key to log into server
Monday, April 4, 2011
what is the hot key for finding matching bracket in Eclipse
on a mac: apple shift p
on a pc (tested under linux): ctrl shift p
worth nothing that you must be on the right hand side of a given
bracket.
Thursday, October 28, 2010
Switching Tabs In Eclipse
Wednesday, August 11, 2010
How can I get Eclipse to show .* files?
In the package explorer, in the upper right corner of the view, there is a little down arrow. Tool tip will say view menu.
Click that, Select Filters. uncheck .* resources.
So Package Explorer -> View Menu -> Filters -> uncheck .* resources.
Using Subclipse (the Subversion Plug-in for Eclipse)
Laurie Williams, Dright Ho, Sarah Heckman, and Andy Meneely. [Contact Authors]
Department of Computer Science
North Carolina State University
1.0 Background of Subversion and Subclipse
Subclipse is an Eclipse plug-in that provides the functionality to interact with a Subversion server, and to manipulate a project on a Subversion server in the Eclipse environment. Terminology If the project is new, the following is done the first time:
|
2.0 Adding Subclipse Plug-in to Eclipse
If you are working in the laboratory, Subclipse should already be installed. 2.1 Create an update site for Subclipse
|
3.0 Subclipse Perspectives
To change to the Subclipse perspective select Window > Open Perspective > Other... > SVN Repository Exploring. The SVN Repository Exploring gives you three new views:
|
4.0 Adding a Repository URL to Subclipse
(I used command to do this, HL)
Top | Contents
5.0 Check In: Adding an Already Existing Project to the Repository
(I used command to do this, HL)
6.0 Checking Out a Project from the Repository
| (I used command to do this, HL) |
7.0 Synchronizing and Committing Resources to the Repository
Any resources that you have modified will have a black asterisk * in front of the resource name, and any added will have a question mark ? in front of the name. It is always a good idea to see what needs to be done before committing files. To synchronize resources, right click on a project and select Team > Synchronize with Repository .... You will be switched to the Team Synchronizing view. From there you can look at your outgoing changes, and others incoming changes, and synchronize your code before committing to the repository. Double-clicking on a file will open a side-by-side view of the file and its changes. If a file has a two-way red arrow on it, then there is a conflict. Someone else has changed that file while you were working on it. Double-click the file to get a compare editor, and copy-paste what you need to resolve onto your local copy. When you have the local copy finished, right-click on the file and choose Mark as Merged. Note: PLEASE USE THIS FEATURE RESPONSIBLY!! Think very hard before selecting "Mark as Merged", as it will override what is in the repository. An entire history is kept in case you make a mistake, but always pause and check your work before marking as merged. Note: constantly updating your code from the repository helps avoid conflicts |
8.0 Synchronizing Resources
| To commit changes to files in your project, right click on the project and select Team > Commit.... Or, if your are in the "Team Synchronizing" perspective, right-click on the resources and select "Commit". Then you will edit the commit comment, or add a new commit comment to document what changes were made. Always add meaningful commit comments! There is also a list of previously used commit comments to choose from. Once you have committed code, the black asterisk should be gone from modified files. |
9.0 History
| To compare your code with the latest from the repository, you may either recheck out the project or right click on the project in the Java/Plug-in Development perspectives and select Compare With > Latest from repository. Using copy and paste, one can recover old code this way. Using Compare With Revision... or Replace With Revision are also helpful. Also, Team > Show History shows an entire history of a folder/file. |
10.0 Disconnecting a Project from the Repository
| Switch to the Java/Plug-in Development perspective. To disconnect a project from the repository, right click on the project and selectTeam > Disconnect. Eclipse will prompt asking if you wish to delete the metadata associated with the Subversion connection. Choose No. If you choose yes, you will have to delete the project in your workspace in order to check out another copy of the code. Note: You will rarely need this feature. |
11.0 Exercise
Submit a file called "subclipse_answers.txt" which has the answers to the following questions.
|
12 .0 Sources and Further Information
Back to Software Engineering Tutorials
Using Subclipse (the Subversion Plug-in for Eclipse) for Configuration Management Tutorial ©2003-2009 North Carolina State University,
Laurie Williams, Dright Ho, Sarah Heckman, and Ben Smith.
Email the authors with any questions or comments about this tutorial.
Last Updated: Wednesday, June 28, 2006 1:59:49 PM
Wednesday, November 4, 2009
Using Eclipse to compare two files
I often need to compare two files to see their differences.
The UNIX geek in me is using diff --side-by-side for that. But sometimes I want something more fancier with bright colors and easier to scroll.
Eclipse provides a handy feature to compare two unrelated files (e.g. not two CVS revisions of the same file) but it's quite difficult to find it first.
To compare two files in Eclipse, select both files (Control click them) and in the contextual menu (right button), chose Compare With > Each Other. Et voila! you got a nicer diff than its CLI counterpart.
Featured Post
Windows和Ubuntu双系统完全独立的安装方法
http://www.ubuntuhome.com/windows-and-ubuntu-install.html | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...
-
http://www.williamlong.info/archives/3125.html -月光博客 互联网精准广告定向技术,指的是依托于搜索引擎庞大的网民行为数据库,对网民几乎所有上网行为进行个性化的深度分析,按广告主需求锁定目标受众,进行一对一传播,提供多通道投放,按照效...
-
VOA News A wine-tasting near Beijing, China Finally, a listener in Taiwan wrote to ask why his face turns red when he drinks alcohol. Th...
-
Companion Website for: Word Frequencies in Written and Spoken English Word Frequencies in Written and Spoken English: based on the British N...
