Project

General

Profile

Actions

Bug #4941

closed

Data search causes menus to disappear on the mac

Added by Chad Berkley over 14 years ago. Updated over 14 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
core
Target version:
Start date:
04/16/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4941

Description

If you do a data search on the mac, all of the menus in the menu bar disappear and never return. To recreate, click the data tab, type in a search term, click "search". the menus will disappear.

Actions #1

Updated by Chad Berkley over 14 years ago

This seems to only happen when the authentication dialog appears. If the auth dialog does not appear, the menus are fine.

Actions #2

Updated by Derik Barseghian over 14 years ago

Hey Chad,
This sounds like bug#4247. Is null being passed in as first param to a showConfirmDialog or a showMessageDialog?

Actions #3

Updated by Chad Berkley over 14 years ago

This is indeed a problem with the JDialog not having a parent. I am working on a solution to get the parent from the currently open tableaux. I have a question in to Christopher to try to find a solution.

Here is the current code that does not quite work:

Iterator effigy = directory.entityList(Effigy.class).iterator();
Tableau t = null;
System.out.println("looking for effigy");
if (effigy != null && effigy.hasNext()) {
Effigy e = (Effigy)effigy.next();
t = e.showTableaux();
}
//...call t.getFrame() and pass that to the auth dialog.

This does not work because it opens a new tableau. We just need a reference to the one that is already open.

Actions #4

Updated by Chad Berkley over 14 years ago

Ok, I got this fixed. The key was to get the graphTableau from the ModelDirectory, from which you can then get the Frame. Here's the code for future reference:

//find the parent tableau to use as the parent for this dialog
Iterator effigy = directory.entityList(Effigy.class).iterator();
Tableau t = null;
while (effigy.hasNext()) {
Effigy e = (Effigy)effigy.next();
t = (Tableau) e.getEntity("graphTableau");
if(t != null) {
break;
}
}
controllingDialog = new JDialog(t.getFrame());
Actions #5

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 4941

Actions

Also available in: Atom PDF