BEX Code Compare is a library and Eclipse plugin, which uses Patience sort / Myers diff and some post diff processing to yield an enhanced code compare
The library has no dependency on Eclipse and can be used in commercial or private projects.
- Maven Dependency
- Screenshots of Eclipse plugin
- What is BEX Code Compare?
- What is BECR?
- How does it work?
- How does the Eclipse plugin work?
- Eclipse Update Site
- Installation
Tip: you only need to specify one of the following. For example, if you include becr.examples, it has a transitive dependency for bex and becr.
<dependency>
<groupId>info.codesaway</groupId>
<artifactId>bex</artifactId>
<version>0.13.0</version>
</dependency>
<dependency>
<groupId>info.codesaway</groupId>
<artifactId>becr</artifactId>
<version>0.13.0</version>
</dependency>
<dependency>
<groupId>info.codesaway</groupId>
<artifactId>becr.examples</artifactId>
<version>0.11.0</version>
</dependency>
Use enhanced compare (enabled by default)
Ignore comments (disabled by default)
Show both sides of substitution in BEX View (disabled by default)
BEX Code Compare is Be Enhanced ϽC Code Compare
BECR, pronounced Beccer, is Be Enhanced Code Refactoring
First we use Patience sort / Myers diff (similar to how GitHub does a compare). Then, we take the resulting diff and do some post diff processing to group the differences into groups of changes.
BEX Matching performs structured code matching to offer an enhanced find and replace for your code
For example, match an if branch with a simple pattern.
if (:[condition]) { :[stuff] }
BEX will ensure the parentheses and braces are balanced, and that you're not looking at commented out code. I like to think of it as a code friendly regular expression. Of course, if you want to mix regex in your pattern, that's supported too.
BECR uses BEX and Eclipe's JDT to parse Java code and provide parsing and refactoring functionality. There are examples available to show how BECR could be used.
Check out the Wiki to learn more
- We start with the BEX library and the functionality it provides outside of an IDE
- Then, the BEX Eclipse plugin identifies important versus non important changes (such as a line being split across multiple lines if ignoring whitespace differences)
- Finally, BEX shows an Eclipse view with the changes
- Name: BEX Code Compare
- Location: https://codesaway.info/eclipse
- Version: 0.5.0
- Name: BEX Code Compare
- Location: https://codesaway.info/eclipse-beta
- Version: 0.5.0
- Open Eclipse and under the Help menu, select Install New Software...
- Click Add... to add a new site
- Stable
- Name: BEX Code Compare
- Location: https://codesaway.info/eclipse
- Click Add
- Beta
- Name: BEX Code Compare (beta)
- Location: https://codesaway.info/eclipse-beta
- Click Add
- Stable
- Check the box next to BEX Code Compare to install the plugin
- Click Next
- Accept the license agreement and click Finish
- When prompted, install the plugin even though it's not digitally signed
- Restart Eclipse when asked
- Start your enhanced compare!
- When you do a compare on Java files, select BEX Code Compare from the dropdown of available compare editors