Eclipse Click to drag (or copy) any file or folder in the project structure

Source: Internet
Author: User

This article is the original article, welcome reprint, but please specify the source http://www.cnblogs.com/yexiubiao/p/5204601.html, not in the article page obvious location to the original link, will retain the right to pursue legal responsibility.

When using Eclipse for Android development editing layout file, you will encounter when clicking on the left side of the project structure of the file or folder (for example, click on the Red box 1 files), the system automatically pop-up dialog box, let you rename the change file (red Box 2), it is particularly uncomfortable.

This is a bug,eclipse of eclipse or ADT that understands our click action as a drag operation (the result is that the file is copied or moved to a different folder).

The effect of this operation is equivalent to dragging the Activity_main.xml file down. If there are files under the clicked file, the effect will be copied, and if the following is a folder, the file will be moved to the following folder.

The reason for this problem is that when the toolbar in the Red Box 2 occupies a very long position, he and the left box 1 of the toolbar between the basic left no space, such as:

When we click on the right side of the code or configuration file for editing, there will be a new tool group will be displayed (red box 1), the Red Box 2 of the tool group in a row can not be displayed, the tool group will automatically switch to the next line to show, at this time we can see the picture will move down (like jitter effect).

If we then click on a file in the project directory (such as Activity_main.xml), at this time back to the non-editing state, red box 1 in the tool group hidden, the original need to wrap the display of the tool group at this time to display a line, so it back to the original position, the two lines change line display, the screen jitter a bit. At this time the system to determine the location of our click Error, the equivalent of our click in the blink of an instant, the click operation is understood by the system as a drag operation, caused by copying or moving the file behavior, this is the cause of the problem.

Know the cause of the problem, the solution is very simple, just need to pull 3 of the toolbar to the right to a point, in 2 processing leaves a certain gap, when the editing state is activated, 1 of the tool group can be fully displayed without wrapping, there will be no interface jitter caused by the wrong position when clicked.

Summary, the above problems are currently only available when editing the Android layout file, in the Java Code Editing view or the ordinary Java project did not encounter this situation, may be only the ADT tool caused by the bug, currently in adt-bundle-windows-x86_64_ 20140101 found this problem. Other circumstances have not encountered this problem for the time being.

Eclipse Click to drag (or copy) any file or folder in the project structure

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.