Esempio n. 1
0
  @Override
  public final String getDisplayName() {
    String version;
    if (!runtime.isConfigured()) {
      version = NbBundle.getMessage(GrailsInstance.class, "GrailsInstance.unknownVersion");
    }

    version = runtime.getVersion().toString();
    return NbBundle.getMessage(GrailsInstance.class, "GrailsInstance.displayName", version);
  }
Esempio n. 2
0
 public static final GrailsInstance forProvider(GrailsInstanceProvider provider) {
   // when we will support multiple runtimes it has to be list of instances
   return new GrailsInstance(provider, GrailsPlatform.getDefault());
 }