test_class.declarator: propsUnderTest = null
test_class.original_string: InMemoryI18nProperties propsUnderTest = null;
test_class.type: InMemoryI18nProperties
test_class.var_name: propsUnderTest
test_class.file: sql12/plugins/i18n/src/test/java/net/sourceforge/squirrel_sql/plugins/i18n/I18nPropsTest.java
test_class.identifier: I18nPropsTest
test_case.body: @Test
      public void testGetTranslateableProperties_Bug1787731() {
          /* Call class under test */
          propsUnderTest.getTranslateableProperties();
      }
test_case.class_method_signature: I18nPropsTest.testGetTranslateableProperties_Bug1787731()
test_case.full_signature: @Test public void testGetTranslateableProperties_Bug1787731()
test_case.identifier: testGetTranslateableProperties_Bug1787731
test_case.invocations: getTranslateableProperties
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetTranslateableProperties_Bug1787731()
focal_class.declarator: _file
focal_class.modifier: private
focal_class.original_string: private File _file;
focal_class.type: File
focal_class.var_name: _file
focal_class.declarator: _zipFile
focal_class.modifier: private
focal_class.original_string: private File _zipFile;
focal_class.type: File
focal_class.var_name: _zipFile
focal_class.declarator: _entryName
focal_class.modifier: private
focal_class.original_string: private String _entryName;
focal_class.type: String
focal_class.var_name: _entryName
focal_class.declarator: _name
focal_class.modifier: private
focal_class.original_string: private String _name;
focal_class.type: String
focal_class.var_name: _name
focal_class.file: sql12/plugins/i18n/src/main/java/net/sourceforge/squirrel_sql/plugins/i18n/I18nProps.java
focal_class.identifier: I18nProps
focal_class.class_method_signature: I18nProps.I18nProps(File file, URL[] sourceUrls)
focal_class.full_signature: public  I18nProps(File file, URL[] sourceUrls)
focal_class.identifier: I18nProps
focal_class.modifiers: public
focal_class.parameters: (File file, URL[] sourceUrls)
focal_class.signature:  I18nProps(File file, URL[] sourceUrls)
focal_class.class_method_signature: I18nProps.I18nProps(File zipFile, String entryName, URL[] sourceUrls)
focal_class.full_signature: public  I18nProps(File zipFile, String entryName, URL[] sourceUrls)
focal_class.identifier: I18nProps
focal_class.modifiers: public
focal_class.parameters: (File zipFile, String entryName, URL[] sourceUrls)
focal_class.signature:  I18nProps(File zipFile, String entryName, URL[] sourceUrls)
focal_class.class_method_signature: I18nProps.initName(URL[] sourceUrls)
focal_class.full_signature: private void initName(URL[] sourceUrls)
focal_class.identifier: initName
focal_class.modifiers: private
focal_class.parameters: (URL[] sourceUrls)
focal_class.return: void
focal_class.signature: void initName(URL[] sourceUrls)
focal_class.class_method_signature: I18nProps.getPath()
focal_class.full_signature: public String getPath()
focal_class.identifier: getPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPath()
focal_class.class_method_signature: I18nProps.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: I18nProps.getProperties()
focal_class.full_signature:  Properties getProperties()
focal_class.identifier: getProperties
focal_class.parameters: ()
focal_class.return: Properties
focal_class.signature: Properties getProperties()
focal_class.class_method_signature: I18nProps.getInputStream()
focal_class.full_signature: private InputStream getInputStream()
focal_class.identifier: getInputStream
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: InputStream
focal_class.signature: InputStream getInputStream()
focal_class.class_method_signature: I18nProps.removeProps(Properties toRemoveFrom)
focal_class.full_signature: public void removeProps(Properties toRemoveFrom)
focal_class.identifier: removeProps
focal_class.modifiers: public
focal_class.parameters: (Properties toRemoveFrom)
focal_class.return: void
focal_class.signature: void removeProps(Properties toRemoveFrom)
focal_class.class_method_signature: I18nProps.copyTo(File toCopyTo)
focal_class.full_signature: public void copyTo(File toCopyTo)
focal_class.identifier: copyTo
focal_class.modifiers: public
focal_class.parameters: (File toCopyTo)
focal_class.return: void
focal_class.signature: void copyTo(File toCopyTo)
focal_class.class_method_signature: I18nProps.getLocalizedFileName(Locale loc)
focal_class.full_signature: public String getLocalizedFileName(Locale loc)
focal_class.identifier: getLocalizedFileName
focal_class.modifiers: public
focal_class.parameters: (Locale loc)
focal_class.return: String
focal_class.signature: String getLocalizedFileName(Locale loc)
focal_class.class_method_signature: I18nProps.getUnlocalizedPath(Locale loc)
focal_class.full_signature: public String getUnlocalizedPath(Locale loc)
focal_class.identifier: getUnlocalizedPath
focal_class.modifiers: public
focal_class.parameters: (Locale loc)
focal_class.return: String
focal_class.signature: String getUnlocalizedPath(Locale loc)
focal_class.class_method_signature: I18nProps.parseLocaleFromPropsFileName(String propsFileName)
focal_class.full_signature: public static Locale parseLocaleFromPropsFileName(String propsFileName)
focal_class.identifier: parseLocaleFromPropsFileName
focal_class.modifiers: public static
focal_class.parameters: (String propsFileName)
focal_class.return: Locale
focal_class.signature: Locale parseLocaleFromPropsFileName(String propsFileName)
focal_class.class_method_signature: I18nProps.getTranslateableProperties()
focal_class.full_signature: public Properties getTranslateableProperties()
focal_class.identifier: getTranslateableProperties
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Properties
focal_class.signature: Properties getTranslateableProperties()
focal_class.superclass: extends Object
focal_method.body: public Properties getTranslateableProperties()
      {
          String name;
  
          if(null == _entryName)
          {
              name = _file.getName();
          }
          else
          {
              if(-1 == _entryName.lastIndexOf(File.separator))
              {
                  name = _entryName;
              }
              else
              {
                  name = _entryName.substring(_entryName.lastIndexOf(File.separator));
              }
          }
  
          if(name.startsWith("I18nStrings"))
          {
              return getProperties();
          }
          else
          {
              // These files contain images etc. We try to filter out these props.
              Properties ret = getProperties();
  
  
              // Do not change this way to iterate.
              // Changing to ret.keySet().iterator() caused bug #1787731
              // The save way would be not to use  ret.remove(key) inside the loop.
              for(Enumeration e=ret.keys(); e.hasMoreElements();)
              {
                  String key = (String) e.nextElement();
  
                  if(key.endsWith(".image") ||
                      key.endsWith(".rolloverimage") ||
                      key.endsWith(".disabledimage") ||
                      key.endsWith(".frameIcon") ||
                      key.endsWith(".file") ||
                      key.endsWith(".images") ||
                      key.endsWith(".accelerator") ||
                      key.equals("path.defaults")
                      )
                  {
                      ret.remove(key);
                  }
  
                  if(key.endsWith(".noi18n") && ret.getProperty(key).equalsIgnoreCase("true"))
                  {
                      ret.remove(key);
                      ret.remove(key.substring(0, key.length() - ".noi18n".length()));
                  }
              }
  
              return ret;
  
  
  
  
  
  
          }
  
  
  
      }
focal_method.class_method_signature: I18nProps.getTranslateableProperties()
focal_method.full_signature: public Properties getTranslateableProperties()
focal_method.identifier: getTranslateableProperties
focal_method.invocations: getName lastIndexOf substring lastIndexOf startsWith getProperties getProperties keys hasMoreElements nextElement endsWith endsWith endsWith endsWith endsWith endsWith endsWith equals remove endsWith equalsIgnoreCase getProperty remove remove substring length length
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Properties
focal_method.signature: Properties getTranslateableProperties()