Examples of IIdentityModel


Examples of com.subgraph.vega.api.model.identity.IIdentityModel

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    final IWorkspace workspace = Activator.getDefault().getModel().getCurrentWorkspace();
    if (workspace != null) {     
      IIdentityModel identityModel = workspace.getIdentityModel();
      IdentityWizard wizard = new IdentityWizard();
      IdentityWizardDialog dialog = new IdentityWizardDialog(HandlerUtil.getActiveWorkbenchWindow(event).getShell(), wizard);
      if (dialog.open() == IDialogConstants.OK_ID) {
        IIdentity identity = wizard.getIdentity();
        identityModel.store(identity);
      }
    }
    return null;
  }
View Full Code Here

Examples of com.subgraph.vega.api.model.identity.IIdentityModel

    addPage(page2);
  }

  @Override
  public boolean performFinish() {
    final IIdentityModel identityModel = Activator.getDefault().getModel().getCurrentWorkspace().getIdentityModel();
    identity = identityModel.createIdentity();
    identity.setName(page1.getName());
    identity.setAuthMethod(page2.getAuthMethod());
    return true;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.