summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-01-10 01:55:35 (EST)
committer dgao2012-01-10 01:55:35 (EST)
commitb57137938264cfb2e1dfcfa9c05f80a0db390f66 (patch)
treec52f0bb2ccdb18f9c7b5432b538ca4580b863574
parent731b49574099e229f0892de6d796cb567473e7b6 (diff)
downloadorg.eclipse.birt-b57137938264cfb2e1dfcfa9c05f80a0db390f66.zip
org.eclipse.birt-b57137938264cfb2e1dfcfa9c05f80a0db390f66.tar.gz
org.eclipse.birt-b57137938264cfb2e1dfcfa9c05f80a0db390f66.tar.bz2
Added an example of date format
-rw-r--r--UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/nls/messages.properties3
-rw-r--r--xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java7
2 files changed, 9 insertions, 1 deletions
diff --git a/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/nls/messages.properties b/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/nls/messages.properties
index ccce4c2..9b18da1 100644
--- a/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/nls/messages.properties
+++ b/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/nls/messages.properties
@@ -4636,10 +4636,11 @@ ReportPage.PreviewImage.Button.ToolTip=Manage Thumbnail
#CrosstabBindingDialogHelper
CrosstabBindingDialogHelper.AggOn.All=All
CrosstabBindingDialogHelper.bindngName.timeperiod=Period
-CrosstabBindingDialogHelper.calculation.labe=Ca&lculation Type:
+CrosstabBindingDialogHelper.calculation.labe=Time &Period:
CrosstabBindingDialogHelper.recentday.description=Most recent date in Time Dimension
CrosstabBindingDialogHelper.referencedate.label=&Reference Date:
CrosstabBindingDialogHelper.thisdate.label=This date:
+CrosstabBindingDialogHelper.thisdate.example.label=Example - "2012-01-23" or "01-23-2012" or "2012"
CrosstabBindingDialogHelper.timedimension.label=Ti&me Dimension:
CrosstabBindingDialogHelper.timeperiod.wrongdate=This Dimension don't support the recent reference date
CrosstabBindingDialogHelper.today.label=Today
diff --git a/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java b/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java
index 7912817..1256ca2 100644
--- a/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java
+++ b/xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java
@@ -48,6 +48,7 @@ import org.eclipse.birt.report.designer.nls.Messages;
import org.eclipse.birt.report.designer.ui.ReportPlatformUIImages;
import org.eclipse.birt.report.designer.ui.util.ExceptionUtil;
import org.eclipse.birt.report.designer.ui.views.attributes.providers.ChoiceSetFactory;
+import org.eclipse.birt.report.designer.util.ColorManager;
import org.eclipse.birt.report.designer.util.DEUtil;
import org.eclipse.birt.report.item.crosstab.core.ICrosstabConstants;
import org.eclipse.birt.report.item.crosstab.core.de.AggregationCellHandle;
@@ -425,6 +426,12 @@ public class CrosstabBindingDialogHelper extends AbstractBindingDialogHelper
ExpressionType.CONSTANT );
button.refresh( );
+ new Label(radioContainer, SWT.NONE);
+ Label dateFormatLbl = new Label( radioContainer, SWT.NONE );
+ dateFormatLbl.setText(Messages.getString("CrosstabBindingDialogHelper.thisdate.example.label")); //$NON-NLS-1$
+ dateFormatLbl.setForeground( ColorManager.getColor( 128, 128, 128 ) );
+ dateFormatLbl.setLayoutData( new GridData(GridData.FILL_HORIZONTAL));
+
recentButton = new Button( radioContainer, SWT.RADIO );
recentButton.addSelectionListener( new SelectionAdapter( ) {