alt 9 to favorites panel

This commit is contained in:
Anna Kozlova
2005-03-03 15:18:37 +03:00
parent ea13094caf
commit 188c446d32
4 changed files with 5 additions and 1 deletions

Before

Width:  |  Height:  |  Size: 637 B

After

Width:  |  Height:  |  Size: 637 B

+3
View File
@@ -692,6 +692,9 @@
<action id="ActivateHierarchyToolWindow">
<keyboard-shortcut first-keystroke="alt 8"/>
</action>
<action id="ActivateFavoritesToolWindow">
<keyboard-shortcut first-keystroke="alt 9"/>
</action>
<action id="NewElement">
<keyboard-shortcut first-keystroke="alt INSERT"/>
</action>
@@ -39,6 +39,7 @@ public final class ToolWindowsGroup extends ActionGroup{
ourId2Text.put(ToolWindowId.TODO_VIEW, new MyDescriptor("TODO", IconLoader.getIcon("/general/toolWindowTodo.png")));
ourId2Text.put(ToolWindowId.INSPECTION, new MyDescriptor("I&nspection", IconLoader.getIcon("/general/toolWindowInspection.png")));
ourId2Text.put(ToolWindowId.ASPECTS_VIEW, new MyDescriptor("Aspects", IconLoader.getIcon("/general/toolWindowInspection.png")));
ourId2Text.put(ToolWindowId.FAVORITES_VIEW, new MyDescriptor("&Favorites", IconLoader.getIcon("/general/toolWindowFavorites.png")));
}
private final ArrayList<AnAction> myChildren;
@@ -74,7 +74,7 @@ public class FavoritesViewImpl extends ContentManagerImpl implements ProjectComp
public void run() {
ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(myProject);
ToolWindow toolWindow = toolWindowManager.registerToolWindow(ToolWindowId.FAVORITES_VIEW, getComponent(), ToolWindowAnchor.RIGHT);
toolWindow.setIcon(IconLoader.getIcon("/general/favorites.png"));
toolWindow.setIcon(IconLoader.getIcon("/general/toolWindowFavorites.png"));
new ContentManagerWatcher(toolWindow, FavoritesViewImpl.this);
final ContentFactory contentFactory = PeerFactory.getInstance().getContentFactory();
final DefaultActionGroup favoritesActionsGroup = ((DefaultActionGroup)ActionManager.getInstance().getAction(IdeActions.ADD_TO_FAVORITES));