summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-03-21 23:07:16 (EDT)
committer dgao2012-03-21 23:08:43 (EDT)
commit9b9a294759f839339148d690f1641482ef005edb (patch)
tree99631216ae10667c5e41a3a9798d700e4c7cb90c
parent60fa702dec556f2067b47691cb7b7a0b5ba9da8f (diff)
downloadorg.eclipse.birt-9b9a294759f839339148d690f1641482ef005edb.zip
org.eclipse.birt-9b9a294759f839339148d690f1641482ef005edb.tar.gz
org.eclipse.birt-9b9a294759f839339148d690f1641482ef005edb.tar.bz2
Refined binding dialog context help ID logic.
-rw-r--r--UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/DataColumnBindingDialog.java23
1 files changed, 19 insertions, 4 deletions
diff --git a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/DataColumnBindingDialog.java b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/DataColumnBindingDialog.java
index dd32f39..db88d69 100644
--- a/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/DataColumnBindingDialog.java
+++ b/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/DataColumnBindingDialog.java
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2006 Actuate Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Actuate Corporation - initial API and implementation
+ *******************************************************************************/
package org.eclipse.birt.report.designer.internal.ui.dialogs;
@@ -169,14 +179,19 @@ public class DataColumnBindingDialog extends BaseDialog
}
- if ( isTimePeriod
- || ( bindingColumn != null
- && bindingColumn.getTimeDimension( ) != null && !bindingColumn.getTimeDimension( ).equals( "" ))) //$NON-NLS-1$
+ if ( isTimePeriod || isEditTimePeriod())
{
setTitle( TIMEPERIOD_BUILDER_TITLE );
}
}
+ private boolean isEditTimePeriod ()
+ {
+ return ( bindingColumn != null
+ && bindingColumn.getTimeDimension( ) != null
+ && !bindingColumn.getTimeDimension( ).equals( "" )); //$NON-NLS-1$
+ }
+
public void setInput( ReportItemHandle bindingObject,
ComputedColumnHandle bindingColumn )
{
@@ -242,7 +257,7 @@ public class DataColumnBindingDialog extends BaseDialog
dialogHelper.setExpressionProvider( expressionProvider );
dialogHelper.createContent( content );
- UIUtil.bindHelp( content, isTimePeriod? IHelpContextIds.RELATIVE_TIME_PERIOD_DIALOG : IHelpContextIds.DATA_COLUMN_BINDING_DIALOG );
+ UIUtil.bindHelp( content, isTimePeriod || isEditTimePeriod()? IHelpContextIds.RELATIVE_TIME_PERIOD_DIALOG : IHelpContextIds.DATA_COLUMN_BINDING_DIALOG );
return content;
}