Community
Participate
Working Groups
I know this sounds like a peeve, but in this large product with many plugins I have a workspace with many j2ee/ejb/web projects, and I am in the project explorer view and I use the up/down keys to navigate from any node/resource in the explorer to another, I see it takes much more time than if I were to use a similar view say Package Explorer, (not navigator, i wont go there as its simplistic) On navigating to each node/resource, the selection change listener in the tree of the view is called, one of the listeners is org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.selectionChanged(..) which calls o.e.gmf.runtime.common.ui..GlobalAction.refresh() everytime This method is sluggish, not sure why it takes time Note time taken below, when I scrolled from the top to bottom of the view using up/down button, its only indicative Name Time (ms) org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.selectionChanged(SelectionChangedEvent) 4,776 100 % org.eclipse.gmf.runtime.common.ui.action.global.GlobalAction.refresh() 4,776 100 % org.eclipse.gmf.runtime.common.ui.action.global.GlobalAction.getGlobalActionHandlerData() 4,776 100 % org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.getSelection() 4,756 100 % org.eclipse.jst.common.navigator.internal.workingset.views.CommonWorkingSetViewer.getSelection() 4,756 100 % org.eclipse.jface.viewers.StructuredViewer.getSelection() 4,756 100 % org.eclipse.jface.viewers.AbstractTreeViewer.getSelectionFromWidget() 4,756 100 % org.eclipse.jface.viewers.TreeViewer.getSelection(Control) 4,756 100 % org.eclipse.swt.widgets.Tree.getSelection() 4,756 100 % org.eclipse.swt.internal.win32.OS.SendMessage(int, int, int, TVITEM) 4,756 100 % org.eclipse.swt.internal.win32.OS.SendMessageW(int, int, int, TVITEM) 4,756 100 % org.eclipse.gmf.runtime.common.ui.action.global.GlobalAction.getGlobalActionHandlerData(IStructuredSelection) 20 0 %
Fixed. Global actions contributed to other workbench parts (e.g., diagram editor) were being refreshed when the selection changed in the Project Explorer. Now the global actions will only only be refreshed when the selection changes in the part for which they were contributed.
closed
[GMF Restructure] Bug 319140 : product GMF and component Runtime Common was the original product and component for this bug