Prevent the custom View to be drawn in the UI editor

Usually the UI editor in Eclipse or IntelliJ will throw errors, if they are trying to render complex custom Views. These two lines will prevent that.
Merge pull request #162 from Rashiq/master

Prevent the custom View to be drawn in the UI editor