summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlzhang2011-11-25 03:02:09 (EST)
committer mwu2011-11-25 03:02:09 (EST)
commit32a405869359313805c95379e7bf5f3bec0a630b (patch)
tree006c22c773dcba2c733910d4bfda789c348e013c
parent3fcea111db6ae4b8684896799ee4f82f4dba2dff (diff)
downloadorg.eclipse.birt-32a405869359313805c95379e7bf5f3bec0a630b.zip
org.eclipse.birt-32a405869359313805c95379e7bf5f3bec0a630b.tar.gz
org.eclipse.birt-32a405869359313805c95379e7bf5f3bec0a630b.tar.bz2
Checkin: shut down the Data Request Session after using it in showing
Tooltip for Time Functions.
-rw-r--r--data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/api/timeFunction/TimeFunctionManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/api/timeFunction/TimeFunctionManager.java b/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/api/timeFunction/TimeFunctionManager.java
index ec36e8a..5d89a81 100644
--- a/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/api/timeFunction/TimeFunctionManager.java
+++ b/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/api/timeFunction/TimeFunctionManager.java
@@ -519,6 +519,7 @@ public class TimeFunctionManager
String desc = null;
DataRequestSession session = DataRequestSession.newSession( new DataSessionContext( DataSessionContext.MODE_DIRECT_PRESENTATION ) );
IBinding functionBinding = session.getModelAdaptor( ).adaptBinding( column );
+ session.shutdown( );
ITimePeriod basePeriod = functionBinding.getTimeFunction( ).getBaseTimePeriod( );
ITimePeriod relativePeriod = functionBinding.getTimeFunction( ).getRelativeTimePeriod( );