mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
alt 9 to favorites panel
This commit is contained in:
|
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 637 B |
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user