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


Java SpoonPerspective类代码示例

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


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

示例1: getPerspective

import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
public SpoonPerspective getPerspective() {
  if (isInstaviewInstalled()) {
    // Only register the Instaview perspective if the plugin is installed
    return AgileBiInstaPerspective.getInstance();
  }
  return null;
}
 
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:8,代码来源:AgileBiSpoonInstaPlugin.java

示例2: getPerspective

import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
@Override
public SpoonPerspective getPerspective() {
  return perspective;
}
 
开发者ID:HiromuHota,项目名称:pdi-git-plugin,代码行数:5,代码来源:GitSpoonPlugin.java

示例3: getPerspective

import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
public SpoonPerspective getPerspective() {
  return null;
}
 
开发者ID:mattcasters,项目名称:pentaho-pdi-dataset,代码行数:4,代码来源:DataSetSpoonPlugin.java

示例4: getPerspective

import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
@Override
public SpoonPerspective getPerspective() {
  return null;
}
 
开发者ID:mattyb149,项目名称:pdi-layout,代码行数:5,代码来源:PdiLayoutManager.java

示例5: getPerspective

import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
@Override
public SpoonPerspective getPerspective() {
    return null;
}
 
开发者ID:datacleaner,项目名称:pdi-datacleaner,代码行数:5,代码来源:SpoonProfilePlugin.java

示例6: getPerspective

import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
public SpoonPerspective getPerspective() {
  return StarModelerPerspective.getInstance();
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:4,代码来源:StarModelerSpoonPlugin.java

示例7: AgileBiInstaPerspective

import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
public AgileBiInstaPerspective() {
  super("org/pentaho/agilebi/spoon/perspective/insta_browser.xul"); //$NON-NLS-1$

  addPerspectiveListener(this);

  final AgileBiInstaPerspective thisPerspective = this;
  // Set the last perspective so we're never without one
  lastPerspective = this;

  // Register perspective listeners after all loading is complete so we
  // get them all
  display = Display.getCurrent();

  try {
    browser = (XulBrowser) container.getDocumentRoot().getElementById("web_browser"); //$NON-NLS-1$
  } catch (Exception e) {
    e.printStackTrace();//logger.error(e);
  }

  display.asyncExec(new Runnable() {
    @Override
    public void run() {
      browser.setSrc(new File(new File("").getAbsolutePath() + "/plugins/spoon/agile-bi/ui/instaview_load.html")
          .toURI().toString());

      // Add listeners to all perspectives so we can switch back to the last active one
      // in the event there are unsaved changes and the user elects to not return to Instaview
      for (final SpoonPerspective sp : SpoonPerspectiveManager.getInstance().getPerspectives()) {
        sp.addPerspectiveListener(new SpoonPerspectiveListener() {
          @Override
          public void onActivation() {
            if (sp != thisPerspective) {
              lastPerspective = sp;
            }
          }

          @Override
          public void onDeactication() {
          }
        });
      }
    }
  });
}
 
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:45,代码来源:AgileBiInstaPerspective.java

示例8: getPerspective

import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
public SpoonPerspective getPerspective() {
  return AgileBiModelerPerspective.getInstance();
}
 
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:4,代码来源:AgileBISpoonPlugin.java

示例9: getPerspective

import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
@Override
public SpoonPerspective getPerspective() {
  // no perspective
  return null;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:6,代码来源:RepositorySpoonPlugin.java


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