|
|
@ -186,7 +186,6 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt |
|
|
|
* 刷新菜单 |
|
|
|
* 刷新菜单 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void refreshDockingView() { |
|
|
|
public void refreshDockingView() { |
|
|
|
long start = System.currentTimeMillis(); |
|
|
|
|
|
|
|
ToolBarDef toolbarDef = new ToolBarDef(); |
|
|
|
ToolBarDef toolbarDef = new ToolBarDef(); |
|
|
|
toolbarDef.addShortCut(newFolderAction, refreshTreeAction); |
|
|
|
toolbarDef.addShortCut(newFolderAction, refreshTreeAction); |
|
|
|
if (WorkContext.getCurrent().isLocal()) { |
|
|
|
if (WorkContext.getCurrent().isLocal()) { |
|
|
@ -199,12 +198,7 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt |
|
|
|
} |
|
|
|
} |
|
|
|
toolbarDef.updateToolBar(toolBar); |
|
|
|
toolbarDef.updateToolBar(toolBar); |
|
|
|
resetActionStatus(); |
|
|
|
resetActionStatus(); |
|
|
|
long end = System.currentTimeMillis(); |
|
|
|
|
|
|
|
System.out.println("----------------------->refreshDockingView 菜单: " + (end - start)); |
|
|
|
|
|
|
|
long start1 = System.currentTimeMillis(); |
|
|
|
|
|
|
|
refresh(); |
|
|
|
refresh(); |
|
|
|
long end1 = System.currentTimeMillis(); |
|
|
|
|
|
|
|
System.out.println("-------------------------->菜单 refresh: " + (end1 - start1)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|