1 11 12 package org.eclipse.ui.internal.registry; 13 14 import java.util.HashMap ; 15 import java.util.Map ; 16 17 import org.eclipse.core.commands.IParameterValues; 18 import org.eclipse.ui.PlatformUI; 19 import org.eclipse.ui.views.IViewDescriptor; 20 21 26 public final class ViewParameterValues implements IParameterValues { 27 28 public final Map getParameterValues() { 29 final Map values = new HashMap (); 30 31 final IViewDescriptor[] views = PlatformUI.getWorkbench() 32 .getViewRegistry().getViews(); 33 for (int i = 0; i < views.length; i++) { 34 final IViewDescriptor view = views[i]; 35 values.put(view.getLabel(), view.getId()); 36 } 37 38 return values; 39 } 40 } 41 | Popular Tags |