Example #1
0
 protected String getClassNameToPrepare() {
   String className = myLocation.getTargetUnitName();
   if (className == null) {
     //  todo when this case does actually happen?
     String fileName = myLocation.getFileName();
     if (fileName.endsWith(".java")) {
       fileName = fileName.substring(0, fileName.length() - ".java".length());
     }
     className = myLocation.getNodePointer().getModelReference().getLongName() + "." + fileName;
   }
   return className;
 }