mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
2004-11-24 Chris Wiebe
fix command binding for OpenTypeInHierarchyAction * plugin.xml
This commit is contained in:
parent
58c90760ea
commit
75b3224c1c
4 changed files with 28 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-11-24 Chris Wiebe
|
||||
|
||||
fix command binding for OpenTypeInHierarchyAction
|
||||
* plugin.xml
|
||||
|
||||
2004-11-24 Alain Magloire
|
||||
Remove unused class, reduce confusion in code maintainance.
|
||||
* src/org/eclipse/cdt/internal/ui/util/ProblemItemMapper.java
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2004-11-24 Chris Wiebe
|
||||
|
||||
fix exception in OpenTypeInHierarchyAction
|
||||
* browser/org/eclipse/cdt/internal/ui/browser/typehierarchy/OpenTypeInHierarchyAction.java
|
||||
|
||||
2004-11-08 Chris Wiebe
|
||||
|
||||
fix for 68883
|
||||
|
|
|
@ -16,6 +16,7 @@ import org.eclipse.cdt.core.browser.AllTypesCache;
|
|||
import org.eclipse.cdt.core.browser.ITypeInfo;
|
||||
import org.eclipse.cdt.core.browser.ITypeSearchScope;
|
||||
import org.eclipse.cdt.core.browser.TypeSearchScope;
|
||||
import org.eclipse.cdt.core.browser.TypeUtil;
|
||||
import org.eclipse.cdt.core.model.ICElement;
|
||||
import org.eclipse.cdt.internal.ui.browser.opentype.OpenTypeDialog;
|
||||
import org.eclipse.cdt.internal.ui.browser.opentype.OpenTypeMessages;
|
||||
|
@ -89,11 +90,10 @@ public class OpenTypeInHierarchyAction implements IWorkbenchWindowActionDelegate
|
|||
ITypeInfo info = (ITypeInfo) dialog.getFirstResult();
|
||||
if (info == null)
|
||||
return;
|
||||
|
||||
Object[] types= dialog.getResult();
|
||||
if (types != null && types.length > 0) {
|
||||
ICElement type= (ICElement)types[0];
|
||||
OpenTypeHierarchyUtil.open(new ICElement[] { type }, fWindow);
|
||||
|
||||
ICElement celem = AllTypesCache.getElementForType(info, false, true, null);
|
||||
if (celem != null) {
|
||||
OpenTypeHierarchyUtil.open(new ICElement[] { celem }, fWindow);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -886,10 +886,22 @@
|
|||
</command>
|
||||
<keyBinding
|
||||
string="F4"
|
||||
scope="org.eclipse.ui.globalScope"
|
||||
scope="org.eclipse.cdt.ui.cEditorScope"
|
||||
command="org.eclipse.cdt.ui.edit.text.c.open.type.hierarchy"
|
||||
configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
|
||||
</keyBinding>
|
||||
<command
|
||||
name="%ActionDefinition.openTypeInHierarchy.name"
|
||||
description="%ActionDefinition.openTypeInHierarchy.description"
|
||||
category="org.eclipse.ui.category.navigate"
|
||||
id="org.eclipse.cdt.ui.navigate.open.type.in.hierarchy">
|
||||
</command>
|
||||
<keyBinding
|
||||
string="Ctrl+Shift+H"
|
||||
scope="org.eclipse.cdt.ui.cEditorScope"
|
||||
command="org.eclipse.cdt.ui.navigate.open.type.in.hierarchy"
|
||||
configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
|
||||
</keyBinding>
|
||||
<command
|
||||
name="%ActionDefinition.addInclude.name"
|
||||
description="%ActionDefinition.addInclude.description"
|
||||
|
|
Loading…
Add table
Reference in a new issue