ApplicationUtils.showViewByID(DiskView.ID);
}
};
showDiskViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/folderview_16.png"));
showDiskViewAction.setActionDefinitionId("Jampa.showDiskView");
handlerService.activateHandler("Jampa.showDiskView", new ActionHandler(showDiskViewAction));
showLibraryViewAction = new Action(Messages.getString("Menu.Views.ShowLibraryView"), SWT.NONE) {
public void run() {
ApplicationUtils.showViewByID(LibraryView.ID);
}
};
showLibraryViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/libraryview_16.png"));
showLibraryViewAction.setActionDefinitionId("Jampa.showLibraryView");
handlerService.activateHandler("Jampa.showLibraryView", new ActionHandler(showLibraryViewAction));
showPlaylistsViewAction = new Action(Messages.getString("Menu.Views.ShowPlaylistsView"), SWT.NONE) {
public void run() {
ApplicationUtils.showViewByID(PlaylistOverview.ID);
}
};
showPlaylistsViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/playlistoverview_16.png"));
showPlaylistsViewAction.setActionDefinitionId("Jampa.showPlaylistOverview");
handlerService.activateHandler("Jampa.showPlaylistOverview", new ActionHandler(showPlaylistsViewAction));
showDefaultPlaylistViewAction = new Action(Messages.getString("Menu.Views.ShowDefaultPlaylistView"), SWT.NONE) {
public void run() {
ApplicationUtils.showViewByID(PlaylistView.ID, Constants.DEFAULT_PLAYLIST_ID);
}
};
showDefaultPlaylistViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/playlist_16.png"));
showDefaultPlaylistViewAction.setActionDefinitionId("Jampa.showDefaultPlaylist");
handlerService.activateHandler("Jampa.showDefaultPlaylist", new ActionHandler(showDefaultPlaylistViewAction));
showPodcastViewAction = new Action(Messages.getString("Menu.Views.ShowPodcastView"), SWT.NONE) {
public void run() {
ApplicationUtils.showViewByID(PodcastListView.ID);
}
};
showPodcastViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/rss_list_16.png"));
showPodcastViewAction.setActionDefinitionId("Jampa.showPodcastListView");
handlerService.activateHandler("Jampa.showPodcastListView", new ActionHandler(showPodcastViewAction));
showRadioViewAction = new Action(Messages.getString("Menu.Views.ShowRadioView"), SWT.NONE) {
public void run() {
ApplicationUtils.showViewByID(RadioView.ID);
}
};
showRadioViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/radio_16.png"));
showRadioViewAction.setActionDefinitionId("Jampa.showRadioView");
handlerService.activateHandler("Jampa.showRadioView", new ActionHandler(showRadioViewAction));
showPropertyViewAction = new Action(Messages.getString("Menu.Views.ShowPropertyView"), SWT.NONE) {
public void run() {
ApplicationUtils.showViewByID(PropertyView.ID);
}
};
showPropertyViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/property_16.png"));
showPropertyViewAction.setActionDefinitionId("Jampa.showPropertyView");
handlerService.activateHandler("Jampa.showPropertyView", new ActionHandler(showPropertyViewAction));
showControlsViewAction = new Action(Messages.getString("Menu.Views.ShowControlsView"), SWT.NONE) {
public void run() {
ApplicationUtils.showViewByID(PlayerView.ID);
}
};
showControlsViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/playerview_16.png"));
showControlsViewAction.setActionDefinitionId("Jampa.showPlayerView");
handlerService.activateHandler("Jampa.showPlayerView", new ActionHandler(showControlsViewAction));
showEqualizerViewAction = new Action(Messages.getString("Menu.Views.ShowEqualizerView"), SWT.NONE) {
public void run() {
ApplicationUtils.showViewByID(EqualizerView.ID);
}
};
showEqualizerViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/equalizer_16.png"));
showEqualizerViewAction.setActionDefinitionId("Jampa.showEqualizerView");
handlerService.activateHandler("Jampa.showEqualizerView", new ActionHandler(showEqualizerViewAction));
showStatisticsViewAction = new Action(Messages.getString("Menu.Views.ShowStatisticsView"), SWT.NONE) {
public void run() {
ApplicationUtils.showViewByID(StatisticView.ID);
}
};
showStatisticsViewAction.setImageDescriptor(Activator.getImageDescriptor("/icons/stats_16.png"));
showStatisticsViewAction.setActionDefinitionId("Jampa.showStatisticView");
handlerService.activateHandler("Jampa.showStatisticView", new ActionHandler(showStatisticsViewAction));
showPreferencesWindowAction = ActionFactory.PREFERENCES.create(window);
showPreferencesWindowAction.setImageDescriptor(Activator.getImageDescriptor("/icons/preferences_16.png"));
showPreferencesWindowAction.setActionDefinitionId("org.eclipse.ui.window.preferences");
handlerService.activateHandler("org.eclipse.ui.window.preferences", new ActionHandler(showPreferencesWindowAction));
savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE.create(window);
savePerspectiveAction.setText(Messages.getString("Menu.Views.SavePerspective"));
removePerspectiveAction = new Action(Messages.getString("Menu.Views.RemovePerspective"), SWT.NONE) {