本文整理汇总了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;
}
示例2: getPerspective
import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
@Override
public SpoonPerspective getPerspective() {
return perspective;
}
示例3: getPerspective
import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
public SpoonPerspective getPerspective() {
return null;
}
示例4: getPerspective
import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
@Override
public SpoonPerspective getPerspective() {
return null;
}
示例5: getPerspective
import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
@Override
public SpoonPerspective getPerspective() {
return null;
}
示例6: getPerspective
import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
public SpoonPerspective getPerspective() {
return StarModelerPerspective.getInstance();
}
示例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() {
}
});
}
}
});
}
示例8: getPerspective
import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
public SpoonPerspective getPerspective() {
return AgileBiModelerPerspective.getInstance();
}
示例9: getPerspective
import org.pentaho.di.ui.spoon.SpoonPerspective; //导入依赖的package包/类
@Override
public SpoonPerspective getPerspective() {
// no perspective
return null;
}