Package com.teamcenter.rac.util

Examples of com.teamcenter.rac.util.Registry


  public int open() {
    try {
      File localFile = new File(Platform.getInstanceLocation().getURL().getFile());
      long l1 = localFile.getFreeSpace();
      Registry localRegistry = Registry.getRegistry(this);
      long l2 = 1024000L;
      long l3 = localRegistry.getLong("minimum_disk_space_megabytes", 100L);
      l3 *= l2;
      if (l1 < l3) {
        String str1 = localRegistry.getString("minimum_free_space_warning_title");
        String str2 = localRegistry.getString("minimum_free_space_warning_message1");
        String str3 = localRegistry.getString("minimum_free_space_warning_message2");
        String str4 = localRegistry.getString("minimum_free_space_warning_details");
        Object[] arrayOfObject = { localFile.getAbsolutePath(), Long.valueOf(l1 / l2), Long.valueOf(l3 / l2) };
        String str5 = MessageFormat.format(str4, arrayOfObject);
        String str6 = str2 + "\n\n" + str5 + "\n\n" + str3;
        MessageDialog.openWarning(getShell(), str1, str6);
      }
View Full Code Here


    }
  }


  private void updateLoginButton() {
    Registry localRegistry = Registry.getRegistry(this);
    if (localRegistry.getBoolean("enableAutologin", false))
      this.loginButton.setEnabled((this.userid.getText().length() >= 0) && (this.server.getText().length() > 0));
    else
      this.loginButton.setEnabled((this.userid.getText().length() > 0) && (this.server.getText().length() > 0));
  }
View Full Code Here

    KernelPlugin.getDefault().getDialogSettings().put("com.teamcenter.rac.commands.login.SERVERNAME", str2);
  }


  private void retrievePersistedDialogSettings() {
    Registry localRegistry = Registry.getRegistry(TCSession.class);
    boolean bool1 = localRegistry.getBoolean("useServerDirectory", false);
    boolean bool2 = localRegistry.getBoolean("enableAutologin", false);
    String str1 = localRegistry.getString("portalCommunicationTransport");
    this.autologinsAllowed = ((!bool1) && (bool2) && (!str1.equals("http")));
    if (this.autologinsAllowed) {
      this.userid.setText(System.getProperty("user.name"));
      this.userid.selectAll();
      this.password.forceFocus();
View Full Code Here

    }
  }


  private ISectionComponent getDefaultSectionComponent(String paramString) {
    Registry localRegistry = Registry.getRegistry(this);
    ISectionComponent sectionComponent = SectionComponent.createSectionComponent(paramString, this, localRegistry);
    return sectionComponent;
  }
View Full Code Here

TOP

Related Classes of com.teamcenter.rac.util.Registry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.