универсальный дофикс бага с перерисовкой деревьев
This commit is contained in:
@@ -2,6 +2,7 @@ package Common.Visual.Trees;
|
||||
import Common.Visual.ControlForm;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.tree.DefaultTreeModel;
|
||||
public class TreeForm<C extends StyledTree> extends ControlForm<C> {
|
||||
public TreeForm(Class<C> class_in, JPanel mountPanel_in) {
|
||||
super(class_in, mountPanel_in);
|
||||
@@ -12,7 +13,6 @@ public class TreeForm<C extends StyledTree> extends ControlForm<C> {
|
||||
}
|
||||
@Override
|
||||
protected void redrawControl() {
|
||||
getTree().revalidate();
|
||||
getTree().repaint();
|
||||
((DefaultTreeModel)getTree().getModel()).reload();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,9 +142,5 @@ public class SPF_GetGraphFunctions extends SapforAnalysis {
|
||||
Global.mainModule.getFile().form.ShowFunctions();
|
||||
Global.mainModule.getPass(PassCode.SPF_GetGraphFunctionPositions).Do();
|
||||
//--
|
||||
DBProjectFile main=target.getMainProgramUnit();
|
||||
if (main!=null){
|
||||
Global.mainModule.getUI().getMainWindow().getProjectWindow().getFilesTreeForm().getTree().RefreshNode(main.node);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user