git-svn-id: https://svn.coded.pt/svn/SIPRP@1050 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Tiago Simão 17 years ago
parent f19ba02615
commit aab5a94e10

@ -536,9 +536,32 @@ public class GerirRiscosPanel extends JPanel implements LeafUIConstants
private void refresh()
{
TreePath selPath = tree.getSelectionPath();
Object selObject = null;
if( selPath != null )
{
Object selNode = selPath.getLastPathComponent();
if( selNode != null && (selNode instanceof DefaultMutableTreeNode ))
{
selObject = ((DefaultMutableTreeNode)selNode).getUserObject();
}
}
root.removeAllChildren();
TreeTools.merge( root, HigieneSegurancaLogic.getRiscosTree() );
TreeTools.refreshTree( tree, root, false );
if( selObject != null )
{
DefaultMutableTreeNode found = TreeTools.findNodeWithUserObject( selObject, root );
if( found != null )
{
TreePath selNew = TreeTools.getPathFor( found );
if( selNew != null )
{
tree.setSelectionPath( selNew );
TreeTools.refreshTree( tree, found, false );
}
}
}
setEnabled();
}

@ -9,7 +9,7 @@ public class HsNormalizacao extends _HsNormalizacao {
private static final int TO_STRING_LENGTH = 58;
@Override
public String getCodigo()
public String getCodigo()
{
return parseFromUnicode( super.getCodigo() );
}

Loading…
Cancel
Save