bridge is called twice
Posted: Mon Jul 18, 2011 9:16 pm
As I posted in the http://openmicroscopy.org/community/viewtopic.php?f=6&t=649&p=2423&hilit=twice#p2346, my custom bridge is called twice (even though I don't do anything with the bridge). And it seems like they are triggered almost simultaneously.
I know one of them is creation and the other one is update.
I really want to distinguish the two. So I got the timing of creation and update like below
but those two (update and creation) are the same.
from the java bridge code, how can i know whether it is called for creation or update?
bk
I know one of them is creation and the other one is update.
I really want to distinguish the two. So I got the timing of creation and update like below
- Code: Select all
public void set(final String name, final Object value,
final Document document, final LuceneOptions _opts) {
if (value instanceof Image) {
final Image i = (Image) value;
Long update = i.getDetails().getUpdateEvent().getTime().getTime();
Long creation = i.getDetails().getCreationEvent().getTime().getTime();
but those two (update and creation) are the same.
from the java bridge code, how can i know whether it is called for creation or update?
bk