summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-03-29 03:17:44 (EDT)
committer dgao2012-03-29 03:17:44 (EDT)
commit4b2f1ded1e39e2d75356cc0a9c48d8adfe7368be (patch)
treedd6536e10f219e29217c0b77d18fb00ca12f731b
parentba63768040cc1e9e72087d352ae05e39f9b2d1b9 (diff)
downloadorg.eclipse.birt-4b2f1ded1e39e2d75356cc0a9c48d8adfe7368be.zip
org.eclipse.birt-4b2f1ded1e39e2d75356cc0a9c48d8adfe7368be.tar.gz
org.eclipse.birt-4b2f1ded1e39e2d75356cc0a9c48d8adfe7368be.tar.bz2
Refined error messages.
-rw-r--r--UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/dialog/MeasureDialog.java4
-rw-r--r--UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/nls/messages.properties1
2 files changed, 3 insertions, 2 deletions
diff --git a/UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/dialog/MeasureDialog.java b/UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/dialog/MeasureDialog.java
index 8b1027a..0868639 100644
--- a/UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/dialog/MeasureDialog.java
+++ b/UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/dialog/MeasureDialog.java
@@ -896,8 +896,8 @@ public class MeasureDialog extends TitleAreaDialog
if ( getButton( IDialogConstants.OK_ID ) != null )
{
getButton( IDialogConstants.OK_ID ).setEnabled( false );
- setErrorMessage( null );
setMessage( null );
+ setErrorMessage( Messages.getString("MeasureDialog.Message.BlankExpression") ); //$NON-NLS-1$
return;
}
}
@@ -908,7 +908,7 @@ public class MeasureDialog extends TitleAreaDialog
{
getButton( IDialogConstants.OK_ID ).setEnabled( true );
setErrorMessage( null );
- setMessage( null );
+ setMessage( Messages.getString( "MeasureDialog.Text.Description" ) ); //$NON-NLS-1$
}
}
}
diff --git a/UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/nls/messages.properties b/UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/nls/messages.properties
index 48cbcf1..c00ac1f 100644
--- a/UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/nls/messages.properties
+++ b/UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/nls/messages.properties
@@ -120,6 +120,7 @@ MeasureDialog.Title.Description=Summary Field
MeasureDialog.Text.Description=To modify the summary field, specify a summary function and an expression that uses data fields
MeasureDialog.Message.NumericName=Name cannot be pure number
MeasureDialog.Message.BlankName=Measure name cannot be blank
+MeasureDialog.Message.BlankExpression=Expression cannot be blank
MeasureDialog.Label.DerivedMeasure=&Is Derived Measure
MeasureDialog.Label.ExprDesc=e.g. dataSetRow["QUANTITYORDERED"]
MeasureDialog.Label.ExprDesc.Derived=e.g. measure["QuantityOrdered"] * measure["PriceEach"]