当前位置: 首页>>代码示例>>Java>>正文


Java RepositoryElementMetaInterface.getObjectId方法代码示例

本文整理汇总了Java中org.pentaho.di.repository.RepositoryElementMetaInterface.getObjectId方法的典型用法代码示例。如果您正苦于以下问题:Java RepositoryElementMetaInterface.getObjectId方法的具体用法?Java RepositoryElementMetaInterface.getObjectId怎么用?Java RepositoryElementMetaInterface.getObjectId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.repository.RepositoryElementMetaInterface的用法示例。


在下文中一共展示了RepositoryElementMetaInterface.getObjectId方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: selectJobByReference

import org.pentaho.di.repository.RepositoryElementMetaInterface; //导入方法依赖的package包/类
protected void selectJobByReference() {
  if (rep != null) {
    SelectObjectDialog sod = new SelectObjectDialog(shell, rep, false, true);
    sod.open();
    RepositoryElementMetaInterface repositoryObject = sod.getRepositoryObject();
    if (repositoryObject != null) {
      getByReferenceData(repositoryObject);
      referenceObjectId = repositoryObject.getObjectId();
      specificationMethod = ObjectLocationSpecificationMethod.REPOSITORY_BY_REFERENCE;
      setRadioButtons();
    }
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:14,代码来源:JobEntryJobDialog.java

示例2: selectTransformationByReference

import org.pentaho.di.repository.RepositoryElementMetaInterface; //导入方法依赖的package包/类
protected void selectTransformationByReference() {
  if (rep != null) {
    SelectObjectDialog sod = new SelectObjectDialog(shell, rep, true, false);
    sod.open();
    RepositoryElementMetaInterface repositoryObject = sod.getRepositoryObject();
    if (repositoryObject != null) {
      specificationMethod=ObjectLocationSpecificationMethod.REPOSITORY_BY_REFERENCE;
      getByReferenceData(repositoryObject);
      referenceObjectId = repositoryObject.getObjectId();
      setRadioButtons();
    }
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:14,代码来源:JobEntryTransDialog.java

示例3: selectTransformationByReference

import org.pentaho.di.repository.RepositoryElementMetaInterface; //导入方法依赖的package包/类
protected void selectTransformationByReference() {
  if (repository != null) {
    SelectObjectDialog sod = new SelectObjectDialog(shell, repository, true, false);
    sod.open();
    RepositoryElementMetaInterface repositoryObject = sod.getRepositoryObject();
    if (repositoryObject != null) {
      specificationMethod=ObjectLocationSpecificationMethod.REPOSITORY_BY_REFERENCE;
      getByReferenceData(repositoryObject);
      referenceObjectId = repositoryObject.getObjectId();
      setRadioButtons();
    }
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:14,代码来源:MappingDialog.java

示例4: selectTransformationByReference

import org.pentaho.di.repository.RepositoryElementMetaInterface; //导入方法依赖的package包/类
protected void selectTransformationByReference() {
  if (repository != null) {
    SelectObjectDialog sod = new SelectObjectDialog(shell, repository, true, false);
    sod.open();
    RepositoryElementMetaInterface repositoryObject = sod.getRepositoryObject();
    if (repositoryObject != null) {
      specificationMethod = ObjectLocationSpecificationMethod.REPOSITORY_BY_REFERENCE;
      getByReferenceData(repositoryObject);
      referenceObjectId = repositoryObject.getObjectId();
      setRadioButtons();
    }
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:14,代码来源:MetaInjectDialog.java

示例5: selectJobByReference

import org.pentaho.di.repository.RepositoryElementMetaInterface; //导入方法依赖的package包/类
protected void selectJobByReference() {
  if (repository != null) {
    SelectObjectDialog sod = new SelectObjectDialog(shell, repository, true, false);
    sod.open();
    RepositoryElementMetaInterface repositoryObject = sod.getRepositoryObject();
    if (repositoryObject != null) {
      specificationMethod=ObjectLocationSpecificationMethod.REPOSITORY_BY_REFERENCE;
      getByReferenceData(repositoryObject);
      referenceObjectId = repositoryObject.getObjectId();
      setRadioButtons();
    }
  }
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:14,代码来源:JobExecutorDialog.java

示例6: ok

import org.pentaho.di.repository.RepositoryElementMetaInterface; //导入方法依赖的package包/类
private void ok() {
  // Something has to be selected!
  if (wTree.getSelectionCount() > 0) {
    TreeItem ti = wTree.getSelection()[0];
    
    // No directory!
    if (!ti.getForeground().equals(dircolor)) {
      int level = ConstUI.getTreeLevel(ti);
      if (level > 0) {
        repositoryObject = (RepositoryElementMetaInterface) ti.getData();
        if (repositoryObject != null) {
          objectName = repositoryObject.getName();
          objectDirectory = repositoryObject.getRepositoryDirectory();
          objectId = repositoryObject.getObjectId();
          objectType = repositoryObject.getObjectType();
        } else {
          // For backward compatibility, we should rarely end up here...
          //
          String path[] = ConstUI.getTreeStrings(ti.getParentItem());
          objectName = ti.getText(0);
          objectType = null;
          for (RepositoryObjectType type : RepositoryObjectType.values()) {
            if (type.getTypeDescription().equalsIgnoreCase(ti.getText(1))) {
              objectType = type;
              break;
            }
          }
          objectDirectory = directoryTree.findDirectory(path);
        }

        if (objectDirectory != null) {
          dispose();
        } else {
          MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR);
          mb.setMessage(BaseMessages.getString(PKG, "SelectObjectDialog.Dialog.DirectoryNotFound.Message")); //$NON-NLS-1$
          mb.setText(BaseMessages.getString(PKG, "SelectObjectDialog.Dialog.DirectoryNotFound.Title")); //$NON-NLS-1$
          mb.open();
        }
      }
    }
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:43,代码来源:SelectObjectDialog.java

示例7: ok

import org.pentaho.di.repository.RepositoryElementMetaInterface; //导入方法依赖的package包/类
private void ok() {
  // Something has to be selected!
  if ( wTree.getSelectionCount() > 0 ) {
    TreeItem ti = wTree.getSelection()[ 0 ];

    // No directory!
    if ( !Boolean.TRUE.equals( wTree.getSelection()[ 0 ].getData( "isFolder" ) ) ) {
      int level = ConstUI.getTreeLevel( ti );
      if ( level > 0 ) {
        repositoryObject = (RepositoryElementMetaInterface) ti.getData();
        if ( repositoryObject != null ) {
          objectName = repositoryObject.getName();
          objectDirectory = repositoryObject.getRepositoryDirectory();
          objectId = repositoryObject.getObjectId();
          objectType = repositoryObject.getObjectType();
        } else {
          // For backward compatibility, we should rarely end up here...
          //
          String[] path = ConstUI.getTreeStrings( ti.getParentItem() );
          objectName = ti.getText( 0 );
          objectType = null;
          for ( RepositoryObjectType type : RepositoryObjectType.values() ) {
            if ( type.getTypeDescription().equalsIgnoreCase( ti.getText( 1 ) ) ) {
              objectType = type;
              break;
            }
          }
          objectDirectory = directoryTree.findDirectory( path );
        }

        if ( objectDirectory != null ) {
          dispose();
        } else {
          MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
          mb.setMessage( BaseMessages.getString( PKG, "SelectObjectDialog.Dialog.DirectoryNotFound.Message" ) );
          mb.setText( BaseMessages.getString( PKG, "SelectObjectDialog.Dialog.DirectoryNotFound.Title" ) );
          mb.open();
        }
      }
    }
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:43,代码来源:SelectObjectDialog.java


注:本文中的org.pentaho.di.repository.RepositoryElementMetaInterface.getObjectId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。