Is it possible to define a custom inheritance method?
At my work we use a method like
utils.implement(ExtendingClass, BaseClass);
Is there a way to tell intellij to treat this the same way as
function BaseClass() {}
function ExtendingClass() {}
ExtendingClass.prototype = new BaseClass();
?
Cheers,
Pete
Please sign in to leave a comment.
Surely we aren't the only people wanting this. If you think this would be an awesome feature, why not say so in this thread.
I suppose you're talking about Javascript, at least that would be a reasonable thing to ask for that language support.
As far as I can tell, IDEA is already picking up this way of defining inheritance. At least it does that for me (i.e. I can see inherited members in the outline) when I use extjs and their Ext.extend(subclass, superclass) method. You might want to have a look at their implementation and see whether you can make IDEA understand your method for inheritance, too.
Of course, it might be that the JetBrains guys coded something up to understand only ExtJs's (and maybe some other frameworks') inheritance mechanisms and then you'd probably have to use one of those libs until the IDEA devs change the implementation.
HTH,
Denis
Please, file JIRA request
ProggerPete wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
I need the very same thing. The original post is 11 years old, has there been any improvements on this issue?
Please submit a new issue to https://youtrack.jetbrains.com/issues/WEB and describe your case and expected behavior.