下面列出了org.eclipse.ui.commands.ICommandService#getCategory ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
public void init(IWorkbench workbench) {
keyController = new KeyController2();
keyController.init(workbench, lstRemove);
model = keyController.getBindingModel();
commandService = (ICommandService) workbench.getService(ICommandService.class);
Collection definedCommandIds = commandService.getDefinedCommandIds();
fDefaultCategory = commandService.getCategory(null);
fBindingService = (IBindingService) workbench.getService(IBindingService.class);
commandImageService = (ICommandImageService) workbench.getService(ICommandImageService.class);
}
public void init(IWorkbench workbench) {
keyController = new KeyController2();
keyController.init(workbench, lstRemove);
model = keyController.getBindingModel();
commandService = (ICommandService) workbench.getService(ICommandService.class);
Collection definedCommandIds = commandService.getDefinedCommandIds();
fDefaultCategory = commandService.getCategory(null);
fBindingService = (IBindingService) workbench.getService(IBindingService.class);
commandImageService = (ICommandImageService) workbench.getService(ICommandImageService.class);
}
public void init(IWorkbench workbench) {
keyController = new KeyController2();
keyController.init(workbench, lstRemove);
model = keyController.getBindingModel();
commandService = (ICommandService) workbench.getService(ICommandService.class);
Collection definedCommandIds = commandService.getDefinedCommandIds();
fDefaultCategory = commandService.getCategory(null);
fBindingService = (IBindingService) workbench.getService(IBindingService.class);
commandImageService = (ICommandImageService) workbench.getService(ICommandImageService.class);
}