Implementation vs. interfaces

Is it possible to tell IDEA (I dowloaded build 638) to jump inside the
xxxBean class on Ctrl-click on method call, instead of going to interface
class? If not, this would be good to see in the next version.

Michael J.


5 comments
Comment actions Permalink

CTRL + CLICK or CTRL + B is "goto declaration" whereas CTRL + ALT + B
is "goto implementation" (what you are asking for). There is no mouse
mapping for this at the moment although it would be really nice to
have one.

Michael

On Tue, 30 Jul 2002 20:34:50 -0700, "Michael Jouravlev"
<mikus@mail.ru> wrote:

>Is it possible to tell IDEA (I dowloaded build 638) to jump inside the
>xxxBean class on Ctrl-click on method call, instead of going to interface
>class? If not, this would be good to see in the next version.
>
>Michael J.
>

0
Comment actions Permalink

Didn't see you were talking about EJBs. I don't know if this works for
EJBs (not really implementing the interface) as well.

Michael

On Wed, 31 Jul 2002 07:14:59 +0200, Michael Descher
<michael.descher@gmx.de> wrote:

>CTRL + CLICK or CTRL + B is "goto declaration" whereas CTRL + ALT + B
>is "goto implementation" (what you are asking for). There is no mouse
>mapping for this at the moment although it would be really nice to
>have one.
>
>Michael
>
>On Tue, 30 Jul 2002 20:34:50 -0700, "Michael Jouravlev"
><mikus@mail.ru> wrote:
>
>>Is it possible to tell IDEA (I dowloaded build 638) to jump inside the
>>xxxBean class on Ctrl-click on method call, instead of going to interface
>>class? If not, this would be good to see in the next version.
>>
>>Michael J.
>>

0
Comment actions Permalink

If you have the EJB configured (ejb-jar.xml that makes the connection
between the interface and the bean class) then CTRL-ALT-B will
work. If not (there may be some peculiar combinations) then it should
be reported in this newsgroup.

r.

"Michael Descher" <michael.descher@gmx.de> wrote in message
news:gsseku01bossl4cn07t5hlhu2r706v76i6@4ax.com...

Didn't see you were talking about EJBs. I don't know if this works for
EJBs (not really implementing the interface) as well.

>

Michael

>

On Wed, 31 Jul 2002 07:14:59 +0200, Michael Descher
<michael.descher@gmx.de> wrote:

>

>CTRL + CLICK or CTRL + B is "goto declaration" whereas CTRL + ALT + B
>is "goto implementation" (what you are asking for). There is no mouse
>mapping for this at the moment although it would be really nice to
>have one.
>
>Michael
>
>On Tue, 30 Jul 2002 20:34:50 -0700, "Michael Jouravlev"
><mikus@mail.ru> wrote:
>
>>Is it possible to tell IDEA (I dowloaded build 638) to jump inside the
>>xxxBean class on Ctrl-click on method call, instead of going to

interface

>>class? If not, this would be good to see in the next version.
>>
>>Michael J.
>>

>


0
Comment actions Permalink

I obviously have this ejb-jar.xml when I am building my project, but:
- I may not have it while coding because I use EJBGen to generate DDs
- I am not convinced that having ejb-jar.xml is necessary to be able to
"hot-jump" to method definition. Here is why:

there is "IDE Options/Code Style/EJB Names" section and by bean is perfectly
complaint with the settings: it is a session bean with "Bean" suffix, home
interface with "Home" suffix, and remote interface without suffixes. I
believe that this info and my package structure should be sufficient to jump
to the method implementation, if I mouse-click on the method call like this:
userMgr.getNewUsers() it should go to userMgrBean.getNewUsers().

By the way, again because of EJBGen, I may have only XXXBean class during
development, because interfaces are generated by EJBGen while building the
project.

Thanks!

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:ai8f2p$dla$1@is.intellij.net...

If you have the EJB configured (ejb-jar.xml that makes the connection
between the interface and the bean class) then CTRL-ALT-B will
work. If not (there may be some peculiar combinations) then it should
be reported in this newsgroup.

>

r.

>

"Michael Descher" <michael.descher@gmx.de> wrote in message
news:gsseku01bossl4cn07t5hlhu2r706v76i6@4ax.com...

Didn't see you were talking about EJBs. I don't know if this works for
EJBs (not really implementing the interface) as well.

>

Michael

>

On Wed, 31 Jul 2002 07:14:59 +0200, Michael Descher
<michael.descher@gmx.de> wrote:

>

>CTRL + CLICK or CTRL + B is "goto declaration" whereas CTRL + ALT + B
>is "goto implementation" (what you are asking for). There is no mouse
>mapping for this at the moment although it would be really nice to
>have one.
>
>Michael
>
>On Tue, 30 Jul 2002 20:34:50 -0700, "Michael Jouravlev"
><mikus@mail.ru> wrote:
>
>>Is it possible to tell IDEA (I dowloaded build 638) to jump inside the

>>xxxBean class on Ctrl-click on method call, instead of going to

interface

>>class? If not, this would be good to see in the next version.
>>
>>Michael J.
>>

>

>
>


0
Comment actions Permalink

OK, I ripped ejb-jar.xml from my EAR file, here is the section pertaining to
particular bean (name is changed). So, I have userMgr variable of type
UsrMgr. I would like to be able to click on userMgr.getNewUsers() and get to
implementation of this method at UserMgrBean.getNewUsers(). I cannot do it
right now using Ctrl-Alt-B, it goes nowhere.

Again, I would prefer to be able to do it without ejb-jar.xml, but using EJB
naming conventions in "IDE Options/Code Style/EJB Names".

Thank you,
Michael J.

UserMgrEJB com.xxx.yyy.ejb.session.UserMgrHome com.xxx.yyy.ejb.session.UserMgr com.xxx.yyy.ejb.session.UserMgrBean Stateless Container "Michael Jouravlev" ]]> wrote in message
news:ai93fe$17f$1@is.intellij.net...

I obviously have this ejb-jar.xml when I am building my project, but:
- I may not have it while coding because I use EJBGen to generate DDs
- I am not convinced that having ejb-jar.xml is necessary to be able to
"hot-jump" to method definition. Here is why:

>

there is "IDE Options/Code Style/EJB Names" section and by bean is

perfectly

complaint with the settings: it is a session bean with "Bean" suffix, home
interface with "Home" suffix, and remote interface without suffixes. I
believe that this info and my package structure should be sufficient to

jump

to the method implementation, if I mouse-click on the method call like

this:

userMgr.getNewUsers() it should go to userMgrBean.getNewUsers().

>

By the way, again because of EJBGen, I may have only XXXBean class during
development, because interfaces are generated by EJBGen while building the
project.

>

Thanks!

>

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:ai8f2p$dla$1@is.intellij.net...

If you have the EJB configured (ejb-jar.xml that makes the connection
between the interface and the bean class) then CTRL-ALT-B will
work. If not (there may be some peculiar combinations) then it should
be reported in this newsgroup.

>

r.

>

"Michael Descher" <michael.descher@gmx.de> wrote in message
news:gsseku01bossl4cn07t5hlhu2r706v76i6@4ax.com...

Didn't see you were talking about EJBs. I don't know if this works for
EJBs (not really implementing the interface) as well.

>

Michael

>

On Wed, 31 Jul 2002 07:14:59 +0200, Michael Descher
<michael.descher@gmx.de> wrote:

>

>CTRL + CLICK or CTRL + B is "goto declaration" whereas CTRL + ALT + B
>is "goto implementation" (what you are asking for). There is no mouse
>mapping for this at the moment although it would be really nice to
>have one.
>
>Michael
>
>On Tue, 30 Jul 2002 20:34:50 -0700, "Michael Jouravlev"
><mikus@mail.ru> wrote:
>
>>Is it possible to tell IDEA (I dowloaded build 638) to jump inside

the
>

>>xxxBean class on Ctrl-click on method call, instead of going to

interface

>>class? If not, this would be good to see in the next version.
>>
>>Michael J.
>>

>

>
>

>
>


0

Please sign in to leave a comment.