Ejemplo 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);
  }
Ejemplo 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());
 }