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

Maven Test class importing internal class JBossASHandler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • 4.1.0.Beta1
    • 4.1.0.Beta1
    • central
    • None

      ./jbosstools-central/maven/tests/org.jboss.tools.maven.sourcelookup.test/src/org/jboss/tools/maven/sourcelookup/test/SourceLookupTest.java has the following method:

       private static IRuntimeDetectorDelegate getJBossASHandler() {
                      Set<IRuntimeDetector> detectors = RuntimeCoreActivator.getDefault().getRuntimeDetectors();
                      for (IRuntimeDetector detector:detectors) {
                              IRuntimeDetectorDelegate delegate = ((RuntimeDetector)detector).getDelegate();
                              if (delegate instanceof JBossASHandler) {
                                      return delegate;
                              }
                      }
                      return null;
              }
      

      The class and its package name are not technically API. It would be best if you instead compared against the handler's id: org.jboss.tools.runtime.handlers.JBossASHandler

      Since this ID is declared in plugin.xml, it's best if you hard-code the string.

      Trying to clean up people who depend on my internal classes so that I can get to organizing stuff properly.

            snjeza_jira Snjezana Peco (Inactive)
            rob.stryker Rob Stryker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: