Revision cf412a22
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java | ||
---|---|---|
57 | 57 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
58 | 58 |
import eu.etaxonomy.taxeditor.model.DescriptionHelper; |
59 | 59 |
import eu.etaxonomy.taxeditor.model.LineSelection; |
60 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySession; |
|
60 | 61 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
61 | 62 |
import eu.etaxonomy.taxeditor.view.AbstractCdmViewPart; |
62 | 63 |
|
... | ... | |
78 | 79 |
|
79 | 80 |
private String referencedObjectTitleCache; |
80 | 81 |
private ConversationHolder conversation; |
82 |
private ICdmEntitySession cdmEntitySession; |
|
83 |
|
|
84 |
public ReferencingObjectsView() { |
|
85 |
cdmEntitySession = CdmStore.getCurrentSessionManager().newSession(this, true); |
|
86 |
} |
|
81 | 87 |
|
82 | 88 |
/* (non-Javadoc) |
83 | 89 |
* @see eu.etaxonomy.taxeditor.model.AbstractCdmViewPart#createViewer(org.eclipse.swt.widgets.Composite) |
... | ... | |
149 | 155 |
viewer.setColumnProperties(titles); |
150 | 156 |
} |
151 | 157 |
|
158 |
@Override |
|
159 |
public void setFocus() { |
|
160 |
cdmEntitySession.bind(); |
|
161 |
} |
|
152 | 162 |
/** |
153 | 163 |
* <p>updateReferencingObjects</p> |
154 | 164 |
* |
... | ... | |
171 | 181 |
@Override |
172 | 182 |
public void run() { |
173 | 183 |
if (entityUUID != null){ |
174 |
|
|
184 |
ICdmEntitySession previousCdmEntitySession = CdmStore.getCurrentSessionManager().getActiveSession(); |
|
185 |
cdmEntitySession.bind(); |
|
175 | 186 |
List<CdmBase> referencingObjects = getReferencingObjects(entityUUID, objectClass); |
176 |
|
|
187 |
if(previousCdmEntitySession != null) { |
|
188 |
previousCdmEntitySession.bind(); |
|
189 |
} |
|
177 | 190 |
updateView(referencingObjects); |
178 | 191 |
|
179 | 192 |
} |
... | ... | |
313 | 326 |
conversation.close(); |
314 | 327 |
selectionService.removePostSelectionListener(this); |
315 | 328 |
selectionService.removeSelectionListener(this); |
329 |
cdmEntitySession.dispose(); |
|
316 | 330 |
super.dispose(); |
317 | 331 |
|
318 | 332 |
} |
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/cache/CdmTransientEntityCacher.java | ||
---|---|---|
95 | 95 |
*/ |
96 | 96 |
private CacheConfiguration getEntityCacheConfiguration(String cacheId) { |
97 | 97 |
SizeOfPolicyConfiguration sizeOfConfig = new SizeOfPolicyConfiguration(); |
98 |
sizeOfConfig.setMaxDepth(10000);
|
|
98 |
sizeOfConfig.setMaxDepth(100); |
|
99 | 99 |
sizeOfConfig.setMaxDepthExceededBehavior("abort"); |
100 | 100 |
|
101 | 101 |
return new CacheConfiguration(cacheId, 0) |
Also available in: Unified diff
#5282 Integrate remoting in referencing objects view