How to export selected files from Synchronize view to Eclipse?

Sometimes I made some local changes and for some reason I don’t want to transfer them to the original repository. In this case, I like to write and save my changes to the local file system until I am ready to make them later.

I remember that in an earlier version of eclipse, a context action was detected from the Synchronize view that would highlight the Navigator view of the same files that you selected in the Synchronize view. Then from the "Navigator" view, you can select the highlighted highlighted option.

I don’t see where this option is still available from the Synchronize view, and manually selecting files in the Navigator / Package Explorer window is tiring. Is there an easy way to export multiple files to the Synchronize view?

+6
eclipse
source share
5 answers

This is not in the context menu, but going to the navigation menu at the top and selecting "Show In-> Navigator" will apply this choice. Regardless of whether you export only the selected files, I do not know.

+5
source share

You might want to take a look at the Change Sets feature.

In synchronization mode, the very last button - the "Replace sets" button - if you turn it on, you can assign your changes to the sets you set (right-click on the specified file, and then "Add to" - "New Change Set".

I installed a change set called local changes, and then a new change set for each defect / function I'm working on (and set this as the default change set). When it comes time to commit changes to a function or defect, I simply right-click on the corresponding change set name and press commit.

Thus, you can save local changes as long as you like, without worrying about which files you need to make and which you need to maintain (or create a patch, etc.).

+4
source share

You can do this by setting a key shortcut for export and using it, while the corresponding files are selected almost everywhere in Eclipse, including synchronization.

Go to "Windows"> "Preferences"> "General"> "Key Search" for "Export" and bind it to the key. Remember to set "When" to "In Conversations and Windows."

+2
source share

Isn't that what you need? In the "Synchronization" view, there should be an element of the Create patch context menu and it creates a file with all the changes in the selected source files. You can easily reapply the patch later with Apply Patch .

+1
source share

The idea of ​​using change sets is good. If you want to export all files associated with a set of changes, do the following:

Synchronize view → select change set → File → Export ... → General → File system → Next → all change set files are now selected → select “Create directory structure for files” and “To directory” for export → Finish

Hi

0
source share

All Articles