- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.pentaho.ui.xul.XulException.printStackTrace()
方法的一些代码示例,展示了XulException.printStackTrace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XulException.printStackTrace()
方法的具体详情如下:
包路径:org.pentaho.ui.xul.XulException
类名称:XulException
方法名:printStackTrace
暂无
代码示例来源:origin: pentaho/pentaho-kettle
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;
}
}
代码示例来源:origin: pentaho/modeler
protected void showValidationMessages( List<String> messages ) {
StringBuffer validationErrors =
new StringBuffer( ModelerMessagesHolder.getMessages().getString( "model_contains_errors" ) ); //$NON-NLS-1$
for ( String msg : messages ) {
validationErrors.append( msg );
validationErrors.append( "\n" ); //$NON-NLS-1$
}
try {
XulMessageBox msg = (XulMessageBox) document.createElement( "messagebox" ); //$NON-NLS-1$
msg.setTitle( ModelerMessagesHolder.getMessages().getString( "model_not_valid" ) ); //$NON-NLS-1$
msg.setMessage( validationErrors.toString() );
msg.open();
} catch ( XulException e ) {
e.printStackTrace();
}
}
代码示例来源:origin: pentaho/data-access
@Bindable
public void setSelectedDatasource( IWizardDatasource datasource ) {
IWizardDatasource prevSelection = activeDatasource;
activeDatasource = datasource;
if ( datasource == null || prevSelection == activeDatasource ) {
return;
}
try {
datasource.activating();
if ( prevSelection != null ) {
steps.removeAll( prevSelection.getSteps() );
prevSelection.deactivating();
}
for ( int i = 1; i < datasource.getSteps().size(); i++ ) {
steps.add( datasource.getSteps().get( i ) );
}
steps.addAll( datasource.getSteps() );
wizardModel.setSelectedDatasource( datasource );
activeStep = 0;
updateBindings();
} catch ( XulException e ) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
}
代码示例来源:origin: pentaho/data-access
/**
* Shows a informational dialog.
*
* @param title title of dialog
* @param message message within dialog
*/
private void showMessagebox( final String title, final String message ) {
XulMessageBox messagebox = null;
try {
messagebox = (XulMessageBox) document.createElement( "messagebox" ); //$NON-NLS-1$
} catch ( XulException e ) {
e.printStackTrace();
return;
}
messagebox.setTitle( title );
messagebox.setMessage( message );
messagebox.open();
}
代码示例来源:origin: pentaho/data-access
} catch ( XulException e ) {
e.printStackTrace();
代码示例来源:origin: pentaho/modeler
public void xulLoaded( GwtXulRunner gwtXulRunner ) {
IModelerMessages messages =
new GwtModelerMessages( (ResourceBundle) gwtXulRunner.getXulDomContainers().get( 0 ).getResourceBundles().get(
0 ) );
BogoPojo bogo = new BogoPojo();
XulDomContainer container = gwtXulRunner.getXulDomContainers().get( 0 );
GwtModelerWorkspaceHelper helper = new GwtModelerWorkspaceHelper();
ModelerWorkspace model = new ModelerWorkspace( helper );
model.setDomain( this.domain );
ModelerController controller = new ModelerController( model );
controller.setWorkspaceHelper( helper );
try {
ModelerMessagesHolder.setMessages( messages );
} catch ( IllegalStateException e ) {
// ignore, it was already set by someone else
boolean ignore = true;
}
BindingFactory bf = new GwtBindingFactory( container.getDocumentRoot() );
controller.setBindingFactory( bf );
container.addEventHandler( controller );
ModelerUiHelper.configureControllers( container, model, bf, controller, new ColResolverController() );
RootPanel.get().add( (Widget) container.getDocumentRoot().getRootElement().getManagedObject() );
try {
gwtXulRunner.initialize();
} catch ( XulException e ) {
e.printStackTrace(); // To change body of catch statement use File | Settings | File Templates.
}
}
代码示例来源:origin: pentaho/data-access
e.printStackTrace();
代码示例来源:origin: pentaho/data-access
} catch ( XulException e ) {
MessageHandler.getInstance().showErrorDialog( "Error", e.getMessage() );
e.printStackTrace();
} catch ( InvocationTargetException e ) {
MessageHandler.getInstance().showErrorDialog( "Error", e.getMessage() );
代码示例来源:origin: pentaho/modeler
@Bindable
public void showAutopopulatePrompt() {
try {
if ( getModelerPerspective() == ModelerPerspective.ANALYSIS ) {
MainModelNode model = workspace.getModel();
if ( model.getDimensions().isEmpty() && model.getMeasures().isEmpty() ) {
autoPopulate();
} else {
showAutoModelConfirmDialog();
}
} else {
RelationalModelNode model = workspace.getRelationalModel();
if ( model.getCategories().isEmpty() ) {
autoPopulate();
} else {
showAutoModelConfirmDialog();
}
}
} catch ( XulException e ) {
e.printStackTrace();
}
}
代码示例来源:origin: pentaho/modeler
@Bindable
public void showNewDimensionDialog() {
try {
XulPromptBox prompt = (XulPromptBox) document.createElement( "promptbox" ); //$NON-NLS-1$
prompt.setTitle( ModelerMessagesHolder.getMessages().getString( "ModelerController.NewDimensionTitle" ) ); //$NON-NLS-1$
prompt.setMessage( ModelerMessagesHolder.getMessages().getString( "ModelerController.NewDimensionText" ) ); //$NON-NLS-1$
prompt.setAcceptLabel( ModelerMessagesHolder.getMessages().getString( "dialog.OK" ) );
prompt.setCancelLabel( ModelerMessagesHolder.getMessages().getString( "dialog.CANCEL" ) );
prompt.addDialogCallback( new XulDialogCallback() {
public void onClose( XulComponent sender, Status returnCode, Object retVal ) {
if ( returnCode == Status.ACCEPT ) {
DimensionMetaData dimension = new DimensionMetaData( "" + retVal ); //$NON-NLS-1$
dimension.setExpanded( true );
HierarchyMetaData hierarchy = new HierarchyMetaData( "" + retVal ); //$NON-NLS-1$
hierarchy.setExpanded( true );
hierarchy.validate();
hierarchy.setParent( dimension );
dimension.add( hierarchy );
workspace.addDimension( dimension );
}
}
public void onError( XulComponent sender, Throwable t ) {
t.printStackTrace();
}
} );
prompt.open();
} catch ( XulException e ) {
e.printStackTrace();
}
}
代码示例来源:origin: pentaho/modeler
@Bindable
public void showNewHierarchyDialog() {
try {
XulPromptBox prompt = (XulPromptBox) document.createElement( "promptbox" ); //$NON-NLS-1$
prompt.setTitle( ModelerMessagesHolder.getMessages().getString( "ModelerController.NewHierarchyTitle" ) ); //$NON-NLS-1$
prompt.setMessage( ModelerMessagesHolder.getMessages().getString( "ModelerController.NewHierarchyText" ) ); //$NON-NLS-1$
prompt.setAcceptLabel( ModelerMessagesHolder.getMessages().getString( "dialog.OK" ) );
prompt.setCancelLabel( ModelerMessagesHolder.getMessages().getString( "dialog.CANCEL" ) );
prompt.addDialogCallback( new XulDialogCallback() {
public void onClose( XulComponent sender, Status returnCode, Object retVal ) {
if ( returnCode == Status.ACCEPT ) {
DimensionMetaData theDimension = (DimensionMetaData) dimTreeHelper.getSelectedTreeItem();
HierarchyMetaData theHieararchy = new HierarchyMetaData( "" + retVal );
theHieararchy.setParent( theDimension );
theHieararchy.setExpanded( true );
boolean prevChangeState = workspace.isModelChanging();
workspace.setModelIsChanging( true );
theDimension.add( theHieararchy );
workspace.setModelIsChanging( prevChangeState );
}
}
public void onError( XulComponent sender, Throwable t ) {
t.printStackTrace();
}
} );
prompt.open();
} catch ( XulException e ) {
e.printStackTrace();
}
}
代码示例来源:origin: pentaho/data-access
private void loadColumnData( String selectedFile ) {
String encoding = datasourceModel.getModelInfo().getFileInfo().getEncoding();
try {
clearColumnGrid();
} catch ( XulException e ) {
// couldn't clear the tree out
e.printStackTrace();
}
if ( datasourceModel.getGuiStateModel().isDirty() ) {
csvDatasourceService.stageFile( selectedFile,
datasourceModel.getModelInfo().getFileInfo().getDelimiter(),
datasourceModel.getModelInfo().getFileInfo().getEnclosure(),
datasourceModel.getModelInfo().getFileInfo().getHeaderRows() > 0,
encoding,
new StageFileCallback() );
} else {
refreshColumnGrid();
closeWaitingDialog();
}
}
本文整理了Java中org.pentaho.ui.xul.XulException.getLocalizedMessage()方法的一些代码示例,展示了XulException.getLocalize
本文整理了Java中org.pentaho.ui.xul.XulException.getMessage()方法的一些代码示例,展示了XulException.getMessage()的具体用法。这些
本文整理了Java中org.pentaho.ui.xul.XulException.printStackTrace()方法的一些代码示例,展示了XulException.printStackTrace
终于让水壶启动而不是挂起,我仍然无法使用它,因为当我尝试创建一个新的数据库连接时(在创建一个新的转换之后)我得到这个错误: org.pentaho.ui.xul.XulException: java.
我是一名优秀的程序员,十分优秀!