From: Hirzel P. <ph...@us...> - 2007-06-19 08:22:01
|
Update of /cvsroot/tcotool/TCO-Tool/src/org/tcotool/application In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv32196/src/org/tcotool/application Modified Files: LauncherView.java Log Message: Cosmetics: enable Find-Toolbar-Icon; show Icon in PersonalCost-Report Index: LauncherView.java =================================================================== RCS file: /cvsroot/tcotool/TCO-Tool/src/org/tcotool/application/LauncherView.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** LauncherView.java 13 Jun 2007 20:13:56 -0000 1.11 --- LauncherView.java 19 Jun 2007 08:21:59 -0000 1.12 *************** *** 165,169 **** public void tbbCutAction_actionPerformed(java.util.EventObject newEvent) {}; public void tbbDeleteAction_actionPerformed(java.util.EventObject newEvent) {}; ! public void tbbFindAction_actionPerformed(java.util.EventObject newEvent) {}; public void tbbNewAction_actionPerformed(java.util.EventObject newEvent) { if (newEvent.getSource() == LauncherView.this.getTlbStandard()) --- 165,175 ---- public void tbbCutAction_actionPerformed(java.util.EventObject newEvent) {}; public void tbbDeleteAction_actionPerformed(java.util.EventObject newEvent) {}; ! public void tbbFindAction_actionPerformed(java.util.EventObject newEvent) { ! try { ! mniFind(); ! } catch (java.lang.Throwable ivjExc) { ! handleException(ivjExc); ! } ! }; public void tbbNewAction_actionPerformed(java.util.EventObject newEvent) { if (newEvent.getSource() == LauncherView.this.getTlbStandard()) *************** *** 1010,1013 **** --- 1016,1020 ---- // user code begin {1} ivjMniDependencyGraph.setText(getResourceString("MniDependencyGraph_text") + " (S1--10%-->S2)"); + ivjMniDependencyGraph.setIcon(ResourceBundle.getImageIcon(ModelUtility.class, "Dependency.png")); // user code end } catch (java.lang.Throwable ivjExc) { *************** *** 1160,1174 **** mniFind.setName("MniFind"); mniFind.setText(CommonUserAccess.getMniEditFindText()); mniFind.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { ! try { ! if (!getViewOptions().getViewManager().activateView(FindDialog.class)) { ! javax.swing.JDialog dialog = new FindDialog(getInstance(), getViewOptions(), false); ! getViewOptions().getViewManager().checkIn(null, dialog); ! dialog.setVisible(true); ! } ! } catch(Throwable ex) { ! handleException(ex); ! } } }); --- 1167,1174 ---- mniFind.setName("MniFind"); mniFind.setText(CommonUserAccess.getMniEditFindText()); + mniFind.setIcon(CommonUserAccess.getIconFind()); mniFind.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { ! mniFind(); } }); *************** *** 1179,1182 **** --- 1179,1193 ---- return mniFind; } + private void mniFind() { + try { + if (!getViewOptions().getViewManager().activateView(FindDialog.class)) { + javax.swing.JDialog dialog = new FindDialog(getInstance(), getViewOptions(), false); + getViewOptions().getViewManager().checkIn(null, dialog); + dialog.setVisible(true); + } + } catch(Throwable ex) { + handleException(ex); + } + } /** * Return the MniHelp property value. *************** *** 1259,1262 **** --- 1270,1274 ---- // user code begin {1} ivjMniReportPersonalCost.setText(ResourceManager.getResource(PersonalCostDetailView.class, "FrmWindow_text")); + ivjMniReportPersonalCost.setIcon(ResourceBundle.getImageIcon(ModelUtility.class, "PersonalCost.png")); //getUtility().getIcon(PersonalCost.class, false) // user code end } catch (java.lang.Throwable ivjExc) { *************** *** 2051,2054 **** --- 2063,2067 ---- getTlbStandard().setTbbNewEnabled(true); getTlbStandard().setTbbChangeEnabled(true); + getTlbStandard().setTbbFindEnabled(true); mnuFileHistory = new FileHistoryMenu(this, 9, getSettings().getLastFiles()); |