示例#1
0
 static {
   addressGradient = PlatformUtils.loadImageResource("address-gradient.png");
   addressGradientPaint =
       new TexturePaint(
           addressGradient,
           new Rectangle2D.Float(
               0, 0, addressGradient.getWidth(null), addressGradient.getHeight(null)));
   addressArrow = PlatformUtils.loadImageResource("address-arrow.png");
   addressExclamation = PlatformUtils.loadImageResource("address-exclamation.png");
 }
 @NotNull
 private static ConfigImportSettings getConfigImportSettings() {
   try {
     @SuppressWarnings("unchecked")
     Class<ConfigImportSettings> customProviderClass =
         (Class<ConfigImportSettings>)
             Class.forName(
                 "com.intellij.openapi.application."
                     + PlatformUtils.getPlatformPrefix()
                     + "ConfigImportSettings");
     if (ConfigImportSettings.class.isAssignableFrom(customProviderClass)) {
       return ReflectionUtil.newInstance(customProviderClass);
     }
   } catch (ClassNotFoundException ignored) {
   } catch (RuntimeException ignored) {
   }
   return new ConfigImportSettings();
 }