• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ILoginCallback类的典型用法和代码示例

java 1次浏览

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

ILoginCallback类属于org.pentaho.di.ui.repository包,在下文中一共展示了ILoginCallback类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: loginToRepository

点赞 2

import org.pentaho.di.ui.repository.ILoginCallback; //导入依赖的package包/类
void loginToRepository( RepositoryMeta repositoryMeta, ILoginCallback loginCallback ) {
  RepositoryDialog dialog = getRepositoryDialog();
  boolean result = dialog.openLogin( repositoryMeta );
  if ( result ) {
    loginCallback.onSuccess( repositoryConnectController.getConnectedRepositoryInstance() );
  } else {
    loginCallback.onCancel();
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:10,
代码来源:RequestLoginToRepositoryExtensionPoint.java

示例2: setCallback

点赞 2

import org.pentaho.di.ui.repository.ILoginCallback; //导入依赖的package包/类
public void setCallback(ILoginCallback callback) {
  this.callback = callback;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:4,
代码来源:RepositoriesController.java

示例3: getCallback

点赞 2

import org.pentaho.di.ui.repository.ILoginCallback; //导入依赖的package包/类
public ILoginCallback getCallback() {
  return callback;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:4,
代码来源:RepositoriesController.java

示例4: setCallback

点赞 2

import org.pentaho.di.ui.repository.ILoginCallback; //导入依赖的package包/类
public void setCallback( ILoginCallback callback ) {
  this.callback = callback;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:4,
代码来源:RepositoriesController.java

示例5: openRepository

点赞 2

import org.pentaho.di.ui.repository.ILoginCallback; //导入依赖的package包/类
public void openRepository() {
  // Check to tabs are dirty and warn user that they must save tabs prior to connecting.  Don't connect!
  if ( Spoon.getInstance().isTabsChanged() ) {
    MessageBox mb = new MessageBox( Spoon.getInstance().getShell(), SWT.OK );
    mb.setMessage(  BaseMessages.getString( PKG, "Spoon.Dialog.WarnToSaveAllPriorToConnect.Message" ) );
    mb.setText( BaseMessages.getString( PKG, "Spoon.Dialog.WarnToCloseAllForce.Disconnect.Title" ) );
    mb.open();

    // Don't connect, user will need to save all their dirty tabs.
    return;
  }

  loginDialog = new RepositoriesDialog( shell, null, new ILoginCallback() {

    @Override
    public void onSuccess( Repository repository ) {
      // Close previous repository...
      if ( rep != null ) {
        rep.disconnect();
        SpoonPluginManager.getInstance().notifyLifecycleListeners( SpoonLifeCycleEvent.REPOSITORY_DISCONNECTED );
      }
      setRepository( repository );

      loadSessionInformation( repository, true );

      refreshTree();
      setShellText();
      SpoonPluginManager.getInstance().notifyLifecycleListeners( SpoonLifeCycleEvent.REPOSITORY_CONNECTED );
    }

    @Override
    public void onError( Throwable t ) {
      closeRepository();
      onLoginError( t );
    }

    @Override
    public void onCancel() {

    }
  } );
  loginDialog.show();
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:44,
代码来源:Spoon.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)