[Lilith-devel] SF.net SVN: lilith:[316] trunk/lilith/src
Brought to you by:
huxhorn
|
From: <hu...@us...> - 2009-08-30 16:41:13
|
Revision: 316
http://lilith.svn.sourceforge.net/lilith/?rev=316&view=rev
Author: huxhorn
Date: 2009-08-30 16:41:05 +0000 (Sun, 30 Aug 2009)
Log Message:
-----------
Fixes ticket #24.
Modified Paths:
--------------
trunk/lilith/src/changes/changes.xml
trunk/lilith/src/main/java/de/huxhorn/lilith/swing/ViewActions.java
Modified: trunk/lilith/src/changes/changes.xml
===================================================================
--- trunk/lilith/src/changes/changes.xml 2009-08-30 16:11:24 UTC (rev 315)
+++ trunk/lilith/src/changes/changes.xml 2009-08-30 16:41:05 UTC (rev 316)
@@ -86,6 +86,9 @@
</release>
<release version="0.9.37" date="TBD" description="Future release">
+ <action dev="jhux" type="remove" issue="24">
+ Removed useless action. Statistics can be obtained using "Window" > "Statistics".
+ </action>
<action dev="jhux" type="add" issue="59">
Added persistent zoom-in (*command* .) and zoom-out (*command* shift .) of details view.
</action>
Modified: trunk/lilith/src/main/java/de/huxhorn/lilith/swing/ViewActions.java
===================================================================
--- trunk/lilith/src/main/java/de/huxhorn/lilith/swing/ViewActions.java 2009-08-30 16:11:24 UTC (rev 315)
+++ trunk/lilith/src/main/java/de/huxhorn/lilith/swing/ViewActions.java 2009-08-30 16:41:05 UTC (rev 316)
@@ -92,7 +92,7 @@
private static final Icon PAUSED_TOOLBAR_ICON;
private static final Icon UNPAUSED_TOOLBAR_ICON;
private static final Icon FIND_TOOLBAR_ICON;
- private static final Icon STATISTICS_TOOLBAR_ICON;
+ //private static final Icon STATISTICS_TOOLBAR_ICON;
private static final Icon DISCONNECT_TOOLBAR_ICON;
private static final Icon TAIL_TOOLBAR_ICON;
@@ -286,6 +286,7 @@
}
STATISTICS_MENU_ICON = icon;
+/*
{
URL url = ViewActions.class.getResource("/tango/32x32/apps/utilities-system-monitor.png");
if(url != null)
@@ -298,6 +299,7 @@
}
}
STATISTICS_TOOLBAR_ICON = icon;
+*/
{
URL url = ViewActions.class.getResource("/tango/16x16/actions/media-eject.png");
@@ -498,12 +500,12 @@
private ClearMenuAction clearMenuAction;
private FocusMessageAction focusMessageAction;
private FocusEventsAction focusEventsAction;
- private StatisticsMenuAction statisticsMenuAction;
+ //private StatisticsMenuAction statisticsMenuAction;
private ChangeListener containerChangeListener;
private ScrollToBottomToolBarAction scrollToBottomToolBarAction;
private ClearToolBarAction clearToolBarAction;
private FindToolBarAction findToolBarAction;
- private StatisticsToolBarAction statisticsToolBarAction;
+ //private StatisticsToolBarAction statisticsToolBarAction;
private CopySelectionAction copySelectionAction;
private CopyEventAction copyEventAction;
private CopyLoggingMessageAction copyLoggingMessageAction;
@@ -610,7 +612,7 @@
focusMessageAction = new FocusMessageAction();
focusEventsAction = new FocusEventsAction();
- statisticsMenuAction = new StatisticsMenuAction();
+ //statisticsMenuAction = new StatisticsMenuAction();
editSourceNameMenuAction = new EditSourceNameMenuAction();
saveLayoutAction = new SaveLayoutAction();
resetLayoutAction = new ResetLayoutAction();
@@ -646,7 +648,7 @@
pauseToolBarAction = new PauseToolBarAction();
clearToolBarAction = new ClearToolBarAction();
findToolBarAction = new FindToolBarAction();
- statisticsToolBarAction = new StatisticsToolBarAction();
+ //statisticsToolBarAction = new StatisticsToolBarAction();
attachToolBarAction = new AttachToolBarAction();
PreferencesToolBarAction preferencesToolBarAction = new PreferencesToolBarAction();
disconnectToolBarAction = new DisconnectToolBarAction();
@@ -680,11 +682,10 @@
toolbar.addSeparator();
- JButton statisticsButton = new JButton(statisticsToolBarAction);
- toolbar.add(statisticsButton);
+ //JButton statisticsButton = new JButton(statisticsToolBarAction);
+ //toolbar.add(statisticsButton);
+ //toolbar.addSeparator();
- toolbar.addSeparator();
-
JButton attachButton = new JButton(attachToolBarAction);
toolbar.add(attachButton);
@@ -748,7 +749,7 @@
viewMenu.add(disconnectMenuAction);
viewMenu.add(focusEventsAction);
viewMenu.add(focusMessageAction);
- viewMenu.add(statisticsMenuAction);
+ //viewMenu.add(statisticsMenuAction);
viewMenu.add(editSourceNameMenuAction);
viewMenu.add(editConditionMenuAction);
viewMenu.addSeparator();
@@ -831,7 +832,7 @@
this.viewContainer.addChangeListener(containerChangeListener);
this.viewContainer.addPropertyChangeListener(containerPropertyChangeListener);
- EventWrapperViewPanel zview = viewContainer.getSelectedView();
+ //EventWrapperViewPanel zview = viewContainer.getSelectedView();
setEventWrapper(this.viewContainer.getSelectedEvent());
}
@@ -899,7 +900,7 @@
disconnectMenuAction.setEnabled(isActive);
focusEventsAction.setEnabled(hasView);
focusMessageAction.setEnabled(hasView);
- statisticsMenuAction.setEnabled(hasView);
+ //statisticsMenuAction.setEnabled(hasView);
updateShowHideMenu();
previousTabAction.updateAction();
nextTabAction.updateAction();
@@ -930,7 +931,7 @@
pauseToolBarAction.setEnabled(hasView);
clearToolBarAction.setEnabled(hasView && !hasFilteredBuffer);
findToolBarAction.setEnabled(hasView);
- statisticsToolBarAction.setEnabled(hasView);
+ //statisticsToolBarAction.setEnabled(hasView);
attachToolBarAction.setEnabled(hasView);
disconnectToolBarAction.setEnabled(isActive);
@@ -1120,7 +1121,7 @@
focusTable();
}
-
+/*
private void showStatistics()
{
if(viewContainer != null)
@@ -1133,6 +1134,7 @@
}
}
}
+*/
private void disconnect()
{
@@ -2021,6 +2023,23 @@
public void actionPerformed(ActionEvent e)
{
+ }
+ }
+/*
+ private class StatisticsMenuAction
+ extends AbstractAction
+ {
+ private static final long serialVersionUID = -6336357605789928345L;
+
+ public StatisticsMenuAction()
+ {
+ super("Statistics");
+ putValue(Action.SMALL_ICON, STATISTICS_MENU_ICON);
+ putValue(Action.SHORT_DESCRIPTION, "Statistics");
+ }
+
+ public void actionPerformed(ActionEvent e)
+ {
showStatistics();
}
}
@@ -2042,6 +2061,7 @@
showStatistics();
}
}
+*/
private class DisconnectMenuAction
extends AbstractAction
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|