本文整理汇总了Java中org.pentaho.ui.xul.XulException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java XulException.printStackTrace方法的具体用法?Java XulException.printStackTrace怎么用?Java XulException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.ui.xul.XulException
的用法示例。
在下文中一共展示了XulException.printStackTrace方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: editRemote
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
public void editRemote() {
try {
XulPromptBox promptBox = (XulPromptBox) document.createElement( "promptbox" );
promptBox.setTitle( "Remote repository" );
promptBox.setButtons( new DialogConstant[] { DialogConstant.OK, DialogConstant.CANCEL } );
promptBox.setMessage( "URL/path (The remote name will be \"" + Constants.DEFAULT_REMOTE_NAME + "\")" );
promptBox.setValue( vcs.getRemote() );
promptBox.addDialogCallback( (XulDialogLambdaCallback<String>) ( component, status, value ) -> {
if ( status.equals( Status.ACCEPT ) ) {
vcs.addRemote( value );
}
} );
promptBox.open();
} catch ( XulException e ) {
e.printStackTrace();
}
}
示例2: createTab
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
public XulTabAndPanel createTab(){
try {
XulTab tab = (XulTab) document.createElement("tab");
if(name != null){
tab.setLabel(name);
}
XulTabpanel panel = (XulTabpanel) document.createElement("tabpanel"); //$NON-NLS-1
panel.setSpacing(0);
panel.setPadding(0);
tabs.addChild(tab);
panels.addChild(panel);
tabbox.setSelectedIndex(panels.getChildNodes().indexOf(panel));
return new XulTabAndPanel(tab, panel);
} catch (XulException e) {
e.printStackTrace();
}
return null;
}
示例3: onFileClose
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
public boolean onFileClose() {
int idx = tabbox.getSelectedIndex();
if (idx == -1 || idx >= tabbox.getTabs().getChildNodes().size()) {
return false;
}
try {
if (onTabClose(idx)) {
XulComponent panel = panels.getChildNodes().get(idx);
XulComponent tab = tabs.getChildNodes().get(idx);
panels.removeChild(panel);
tabs.removeChild(tab);
return true;
}
} catch (XulException e) {
e.printStackTrace();
}
return false;
}
示例4: createTab
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
public XulTabAndPanel createTab(){
try {
XulTab tab = (XulTab) document.createElement("tab");
if(name != null){
tab.setLabel(name);
}
XulTabpanel panel = (XulTabpanel) document.createElement("tabpanel"); //$NON-NLS-1
panel.setSpacing(0);
panel.setPadding(0);
tabs.addChild(tab);
panels.addChild(panel);
//tabbox.setSelectedIndex(panels.getChildNodes().indexOf(panel));
return new XulTabAndPanel(tab, panel);
} catch (XulException e) {
e.printStackTrace();
}
return null;
}
示例5: loadDatabaseOptionsFragment
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
protected void loadDatabaseOptionsFragment( String fragmentUri ) throws XulException {
XulComponent groupElement = document.getElementById( "database-options-box" );
XulComponent parentElement = groupElement.getParent();
XulDomContainer fragmentContainer;
try {
// Get new group box fragment ...
// This will effectively set up the SWT parent child relationship...
fragmentContainer = this.xulDomContainer.loadFragment( fragmentUri, Messages.getBundle() );
XulComponent newGroup = fragmentContainer.getDocumentRoot().getFirstChild();
parentElement.replaceChild( groupElement, newGroup );
} catch ( XulException e ) {
e.printStackTrace();
throw e;
}
}
示例6: createTab
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
public XulTabAndPanel createTab(){
try {
XulTab tab = (XulTab) document.createElement("tab");
if(name != null){
tab.setLabel(name);
}
XulTabpanel panel = (XulTabpanel) document.createElement("tabpanel");
panel.setSpacing(0);
panel.setPadding(0);
tabs.addChild(tab);
panels.addChild(panel);
tabbox.setSelectedIndex(panels.getChildNodes().indexOf(panel));
return new XulTabAndPanel(tab, panel);
} catch (XulException e) {
e.printStackTrace();
}
return null;
}
示例7: showMessageBox
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
@VisibleForTesting
void showMessageBox( String title, String message ) {
try {
XulMessageBox messageBox = (XulMessageBox) document.createElement( "messagebox" );
messageBox.setTitle( title );
messageBox.setMessage( message );
messageBox.open();
} catch ( XulException e ) {
e.printStackTrace();
}
}
示例8: showMessageBox
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
private void showMessageBox( String title, String message ) {
try {
XulMessageBox messageBox = (XulMessageBox) document.createElement( "messagebox" );
messageBox.setTitle( title );
messageBox.setAcceptLabel( BaseMessages.getString( PKG, "Dialog.Ok" ) );
messageBox.setMessage( message );
messageBox.open();
} catch ( XulException e ) {
e.printStackTrace();
}
}
示例9: unloadPerspective
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
private void unloadPerspective(SpoonPerspective per){
per.setActive(false);
List<XulOverlay> overlays = per.getOverlays();
if(overlays != null){
for(XulOverlay overlay : overlays){
try {
domContainer.removeOverlay(overlay.getOverlayUri());
} catch (XulException e) {
e.printStackTrace();
}
}
}
Spoon.getInstance().enableMenus();
}
示例10: unloadPerspective
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
private void unloadPerspective(SpoonPerspective per){
per.setActive(false);
List<XulOverlay> overlays = per.getOverlays();
if(overlays != null){
for(XulOverlay overlay : overlays){
try {
domContainer.removeOverlay(overlay.getOverlayUri());
} catch (XulException e) {
e.printStackTrace();
}
}
}
Spoon.getInstance().enableMenus();
}
示例11: startDebugWindow
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
public void startDebugWindow(){
try {
runner.start();
} catch (XulException e) {
e.printStackTrace();
}
}
示例12: getDbController
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
private XulDatabaseExplorerController getDbController() {
if (dbExplorerController == null) {
try {
dbExplorerController = (XulDatabaseExplorerController) this.getXulDomContainer().getEventHandler("dbexplorer");
} catch (XulException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return dbExplorerController;
}
示例13: loadOverlays
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
private void loadOverlays() {
// Load the overlay to remove the "dynamic" behavior of the "combine" column in the "conditions" table
// SWT table cannot accommodate more then one widget type in a given column yet
try {
container.loadOverlay( "org/pentaho/commons/metadata/mqleditor/editor/xul/mainFrame-swt-overlay.xul" ); //$NON-NLS-1$
} catch ( XulException e ) {
log.error( "Error loading Xul overlay: mainFrame-swt-overlay.xul" );
e.printStackTrace();
}
}
示例14: loadDatabaseOptionsFragment
import org.pentaho.ui.xul.XulException; //导入方法依赖的package包/类
private void loadDatabaseOptionsFragment(String fragmentUri) throws XulException{
XulComponent groupElement = document.getElementById("database-options-box"); //$NON-NLS-1$
XulComponent parentElement = groupElement.getParent();
XulDomContainer fragmentContainer = null;
try {
// Get new group box fragment ...
// This will effectively set up the SWT parent child relationship...
fragmentContainer = this.xulDomContainer.loadFragment(fragmentUri, Messages.getBundle());
XulComponent newGroup = fragmentContainer.getDocumentRoot().getFirstChild();
parentElement.replaceChild(groupElement, newGroup);
} catch (XulException e) {
e.printStackTrace();
throw e;
}
}