Example usage for org.eclipse.jface.dialogs IMessageProvider NONE

List of usage examples for org.eclipse.jface.dialogs IMessageProvider NONE

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs IMessageProvider NONE.

Prototype

int NONE

To view the source code for org.eclipse.jface.dialogs IMessageProvider NONE.

Click Source Link

Document

Constant for a regular message (value 0).

Usage

From source file:org.eclipse.birt.report.designer.data.ui.dataset.JointDataSetPage.java

License:Open Source License

public void pageActivated() {
    if (this.propertyPageContainer != null) {
        setPageMessage(Messages.getString("JointDataSetPage.pageName"), IMessageProvider.NONE);//$NON-NLS-1$
        JointDataSetHandle handle = (JointDataSetHandle) this.propertyPageContainer.getModel();
        if (!nameEditor.isDisposed())
            this.nameEditor.dispose();
        if (!nameLabel.isDisposed())
            this.nameLabel.dispose();
        if (this.dataSetList != null) {
            for (int i = 0; i < dataSetList.size(); i++) {
                if (dataSetList.get(i) instanceof JointDataSetHandle
                        && ((JointDataSetHandle) dataSetList.get(i)).getDataSetNames()
                                .equals(handle.getDataSetNames())) {
                    this.dataSetList.remove(i);
                }// w  w w.ja va2s  . com
            }
        }
        this.leftDataSetChooser.setInput(this.dataSetList);
        this.rightDataSetChooser.setInput(this.dataSetList);
        propertyHandle = handle.getPropertyHandle(JointDataSet.JOIN_CONDITONS_PROP);
        Iterator conditionIter = handle.joinConditionsIterator();
        JoinConditionHandle condition;
        while (conditionIter.hasNext()) {
            condition = (JoinConditionHandle) conditionIter.next();
            populateDataSet(condition.getLeftDataSet(), condition.getLeftExpression(), LEFT_DATASET);
            populateDataSet(condition.getRightDataSet(), condition.getRightExpression(), RIGHT_DATASET);
            populateJoinType(condition.getJoinType());
        }

    }

    selectionChanged = false;

}

From source file:org.eclipse.birt.report.designer.data.ui.dataset.OutputColumnDefnPage.java

License:Open Source License

public void pageActivated() {
    getContainer().setMessage(DEFAULT_MESSAGE, IMessageProvider.NONE);
    if (modelChanged) {
        modelChanged = false;
        refreshColumns();
    }
}

From source file:org.eclipse.birt.report.designer.data.ui.dataset.OutputColumnDefnPage.java

License:Open Source License

protected void updateMessage() {
    if (isValid())
        getContainer().setMessage(Messages.getString("dataset.editor.outputColumns"), //$NON-NLS-1$
                IMessageProvider.NONE);
}

From source file:org.eclipse.birt.report.designer.data.ui.dataset.OutputColumnsPage.java

License:Open Source License

public void pageActivated() {
    if (modelChanged) {
        updateOutputColumns();/*from w w  w .j av  a2 s.c  o m*/
        modelChanged = false;
    }
    setPageProperties();
    getContainer().setMessage(Messages.getString("dataset.editor.outputColumns"), //$NON-NLS-1$
            IMessageProvider.NONE);
    viewer.getViewer().getTable().select(0);
    pageActivated = true;
}

From source file:org.eclipse.birt.report.designer.data.ui.dataset.OutputColumnsPage.java

License:Open Source License

/**
 * update message/*from w ww.  j  a v  a  2  s .  com*/
 * 
 */
protected void updateMessage() {
    if (isValid())
        getContainer().setMessage(Messages.getString("dataset.editor.outputColumns"), //$NON-NLS-1$
                IMessageProvider.NONE);
}

From source file:org.eclipse.birt.report.designer.data.ui.dataset.OutputParameterPreviewPage.java

License:Open Source License

public void pageActivated() {
    getContainer().setMessage(Messages.getString("dataset.editor.outputparameters"), //$NON-NLS-1$
            IMessageProvider.NONE);

    if (modelChanged || ((DataSetEditor) this.getContainer()).modelChanged()) {
        modelChanged = false;/*from   ww  w. ja v a  2 s  . co m*/
        runUpdateResults();
    }
}

From source file:org.eclipse.birt.report.designer.data.ui.dataset.ResultSetPreviewPage.java

License:Open Source License

public void pageActivated() {
    getContainer().setMessage(Messages.getString("dataset.editor.preview"), //$NON-NLS-1$
            IMessageProvider.NONE);

    if (modelChanged) {
        modelChanged = false;/*from w  w w .j a  va  2  s.  c om*/

        dataSetHandle = ((DataSetEditor) getContainer()).getHandle();

        int maxRow = this.getMaxRowPreference();
        if (dataSetHandle.getRowFetchLimit() <= 0 || dataSetHandle.getRowFetchLimit() > maxRow) {
            ModuleHandle moduleHandle = ((Module) dataSetHandle.getRoot().copy()).getModuleHandle();
            SlotHandle dataSets = moduleHandle.getDataSets();
            for (int i = 0; i < dataSets.getCount(); i++) {
                if (dataSetHandle.getName().equals(dataSets.get(i).getName())) {
                    dataSetHandle = (DataSetHandle) dataSets.get(i);
                    try {
                        dataSetHandle.setRowFetchLimit(maxRow);
                    } catch (SemanticException e) {
                    }
                    break;
                }
            }
        }

        new UIJob("") { //$NON-NLS-1$

            public IStatus runInUIThread(IProgressMonitor monitor) {
                updateResultsProcess();
                return Status.OK_STATUS;
            }
        }.schedule();
    }
}

From source file:org.eclipse.birt.report.designer.data.ui.datasource.PropertyBindingPage.java

License:Open Source License

/**
 * activate the property binding page/*from   ww w . ja  v  a2s .c  om*/
 */
public void pageActivated() {
    getContainer().setMessage(Messages.getString("datasource.editor.property"), //$NON-NLS-1$
            IMessageProvider.NONE);
}

From source file:org.eclipse.birt.report.designer.data.ui.property.AbstractPropertyDialog.java

License:Open Source License

public final void setMessage(String message, int messageType) {
    if (messageArea != null) {
        if (messageType != IMessageProvider.NONE) {
            titleImage.setVisible(false);
        } else {//w ww .  jav  a  2 s. com
            titleImage.setVisible(true);
        }
        if (message == null && messageType == IMessageProvider.ERROR) {
            messageArea.updateText("", messageType);
        } else {
            messageArea.updateText(message, messageType);
        }
    }
}

From source file:org.eclipse.birt.report.designer.data.ui.property.AbstractPropertyDialog.java

License:Open Source License

/**
 * Convenience method to set a message with the message type
 * IMessageProvider.NONE. It in turn calls the
 * {@link #setMessage (String, int) setMessage}method.
 * /*from w ww  .j a va 2  s  .c o m*/
 * @param message
 *            The message to display in the title are
 */
public final void setMessage(String message) {
    setMessage(message, IMessageProvider.NONE);
}