Beispiel #1
0
 public ProvisioningUI getProvisioningUI() {
   if (ui == null) {
     IProvisioningAgent agent =
         (IProvisioningAgent)
             ServiceHelper.getService(getContext(), IProvisioningAgent.SERVICE_NAME);
     session = new ProvisioningSession(agent);
     Policy policy =
         (Policy) ServiceHelper.getService(ProvUIActivator.getContext(), Policy.class.getName());
     if (policy == null) policy = new Policy();
     ui = new ProvisioningUI(session, IProfileRegistry.SELF, policy);
   }
   return ui;
 }
  public ProvisioningUI getProvisioningUI() {
    if (Tracing.DEBUG_DEFAULT_UI)
      Tracing.debug("Falling back to default provisioning UI"); // $NON-NLS-1$

    if (ui == null) {
      IProvisioningAgent agent =
          (IProvisioningAgent)
              ServiceHelper.getService(getContext(), IProvisioningAgent.SERVICE_NAME);
      session = new ProvisioningSession(agent);
      Policy policy =
          (Policy) ServiceHelper.getService(ProvUIActivator.getContext(), Policy.class.getName());
      if (policy == null) policy = new Policy();
      ui = new ProvisioningUI(session, IProfileRegistry.SELF, policy);
    }
    return ui;
  }