Exemplo n.º 1
0
 private void initConnection() {
   ConnectionContextHelper.checkContextMode(connectionItem);
   contextModeManager = new MetadataContextModeManager();
   if (connectionItem.getConnection().isContextMode()) {
     ContextType contextTypeForContextMode =
         ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
     contextModeManager.setSelectedContextType(contextTypeForContextMode);
   }
 }
  /**
   * @param workbench
   * @param repositoryNode
   * @param sapConnectioItem
   * @param sapFunctionUnit
   * @param metadataTable
   * @param existingNames
   * @param creation
   */
  public SapTableWizard(
      IWorkbench workbench,
      RepositoryNode repositoryNode,
      SAPConnectionItem sapConnectioItem,
      SAPFunctionUnit sapFunctionUnit,
      MetadataTable metadataTable,
      String[] existingNames,
      boolean creation) {
    super(workbench, creation);
    this.connectionItem = sapConnectioItem;
    this.functionUnit = sapFunctionUnit;
    this.existingNames = existingNames;
    this.metadataTable = metadataTable;
    this.creation = creation;
    setRepositoryObject(repositoryNode.getObject());

    pathToSave = RepositoryNodeUtilities.getPath(repositoryNode);
    this.connectionProperty = repositoryNode.getObject().getProperty();
    this.connectionItem.setProperty(connectionProperty);

    setNeedsProgressMonitor(true);
    isRepositoryObjectEditable();
    initLockStrategy();
    ConnectionContextHelper.checkContextMode(connectionItem);
  }