Skip to content

Use opened file in editor or selected in package explorer to find project root , and refresh the whole project. And use github to host my refresh-this-project plugin for eclipse marketplace

License

Notifications You must be signed in to change notification settings

hanks/Refresh_this_project_plugin_for_eclipse

Repository files navigation

Refresh this project

Detect opened file in editor or selected file in package explorer to find project root, and refresh the whole project.

Use github to host my refresh-this-project plugin for eclipse marketplace

Why

Everyday I need to git checkout different branches many times during a job, and I used some git plugins for eclipse before, once I checkout to other branches, the plugin will refresh the project automatically, It is easy to use, but the project is too big, especially too many binary files seem to slow git task.

So I removed these git plugins and it became kind of faster in the UI operations, but every time I checkout to other branches, I have to refresh the whole project by hand. Firstly to find the root of the project, click its name and press F5 to refresh the project. According to the Do not Repeat Youself rule, I create this simple plugin.

Demo

alt text

##Usage [button]: https://raw.githubusercontent.com/hanks/Refresh_this_project_plugin_for_eclipse/master/icons/sample.gif "button"

  1. Just click the button ![alt text][button] in the toolbar
  2. Shortcut: Shift+Ctrl+Z

shortcut can not be changed now, sorry for this...

##Implementation

  1. Job
    1. Because refresh the whole project is a heavy job to main UI thread of eclipse, sometimes it will block user input, and this is not a good user experience. Use Job can solve this problem, it can do asynchronous work from other thread, and update UI during the heavy task.
  2. Shortcut
    1. It is easy to add a key shortcut for a Command, so first bind your action to a command, and create a keybind to the command. It is done. You can see more in here.

Install

There are two ways to install this plugin.

  1. From local
    1. Download and *.jar file in release folder to your eclipse plugin folder, and restart eclipse. It will be shown in the toolbar
  2. From update site
    1. Select Help->Install New Software...
    2. Input https://raw.githubusercontent.com/hanks/Refresh_this_project_plugin_for_eclipse/master/release/update_site/ and press Add to install.

Bugs

  1. can not support selected folder or non program language files in the package explorer, like *.txt, *.png, but it is fine when files are opened in the editor.

Contribution

Waiting for your pull request

Lisence

MIT Lisence

About

Use opened file in editor or selected in package explorer to find project root , and refresh the whole project. And use github to host my refresh-this-project plugin for eclipse marketplace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages