Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9673

"Show All Generic Configuration Points", "Show CDI Events" and "Show CDI Observer Methods" dialogs should look like "Open Implementation" in JDT

    XMLWordPrintable

Details

    • Hide
      Before a user had to hold the Ctrl key and left-click on the needed bean in order to bring up the CDI menu concerning the annotation. Users found that this method was not as convenient as that used by other Eclipse-based software offerings. User interaction with the CDI menus has been modified so that the menu items Show All Generic Configuration Points, Show All Generic Beans, Show CDI Events and Show CDI Observer Methods now work as the Java Development Tools menu, Open Implementation, does. This ensures user interface consistency across Eclipse-based software offerings, enabling new users to have a lower barrier-to-entry.
      Show
      Before a user had to hold the Ctrl key and left-click on the needed bean in order to bring up the CDI menu concerning the annotation. Users found that this method was not as convenient as that used by other Eclipse-based software offerings. User interaction with the CDI menus has been modified so that the menu items Show All Generic Configuration Points, Show All Generic Beans, Show CDI Events and Show CDI Observer Methods now work as the Java Development Tools menu, Open Implementation, does. This ensures user interface consistency across Eclipse-based software offerings, enabling new users to have a lower barrier-to-entry.
    • Documented as Resolved Issue

    Description

      See JBIDE-8692
      Now you have to press Ctrl+Click and not to release the button until you click on the needed bean. It's not so convenient. Let's use some dialog like JDT uses in Open Implementation.

      Test case:
      1. Import CDISolderTest project from https://svn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/projects/CDISolderTest
      2. Open org.jboss.generic.MyGenericBean.java in Java Editor
      3. press Ctrl and point mouse to first @Inject annotation
      4. Select "Show All Generic Configuration Points..." menu item
      ASSERT: follow dialog window should appear

      5. Open org.jboss.generic.MyGenericBean2.java in Java Editor
      6. press Ctrl and point mouse to myObserver method
      7. Select "Show CDI Events" menu item
      ASSERT: follow dialog window should appear

      8. Add myObserver2 method to MyGenericBean2 class

      void myObserver2(@Observes MyBean bean) {
      		
      }
      

      9. Open org.jboss.generic.MyBeanInjections.java in Java Editor
      10. press Ctrl and point mouse to event2 field
      11. Select "Show CDI Observer Methods" menu item
      ASSERT: follow dialog window should appear

      Attachments

        1. dialog1.png
          dialog1.png
          31 kB
        2. dialog2.png
          dialog2.png
          13 kB
        3. dialog3.png
          dialog3.png
          16 kB
        4. new_CDIEvents.png
          new_CDIEvents.png
          28 kB
        5. new_CDIObserverMethods.png
          new_CDIObserverMethods.png
          23 kB
        6. new_GenericConfigurationPoints.png
          new_GenericConfigurationPoints.png
          16 kB
        7. ShowAllGenericConfigurationPoints1.png
          ShowAllGenericConfigurationPoints1.png
          41 kB
        8. ShowAllGenericConfiguration Points2.png
          ShowAllGenericConfiguration Points2.png
          24 kB
        9. ShowCDIEvents1.png
          ShowCDIEvents1.png
          24 kB
        10. ShowCDIEvents2.png
          ShowCDIEvents2.png
          32 kB
        11. ShowCDIObserverMethods1.png
          ShowCDIObserverMethods1.png
          30 kB
        12. ShowCDIObserverMethods2.png
          ShowCDIObserverMethods2.png
          83 kB

        Issue Links

          Activity

            People

              dazarov_jira Daniel Azarov (Inactive)
              alexeykazakov Alexey Kazakov
              Isaac Rooskov Isaac Rooskov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: