wocommunity / wolips

wolips
53 stars 53 forks source link

Fixed "Rename WOComponent" issue #119

Closed sgaertner closed 9 years ago

sgaertner commented 9 years ago

When trying to rename a WOComponent (using the context menu -> Refactor -> Rename WOComponent), and the .api file doesn't contain the Java file name (e.g. "MyComponent.java"), an assertion error occurs and nothing is renamed. We had some .api files where the Java file name was missing the file extension and therefore the error occurred. To solve this issue, the renaming has been made more tolerant. First it tries the Java file name with extension, then without and if that's not found as well, no error happens.