"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "debugger/src/main/java/org/apache/pdfbox/debugger/ui/MenuBase.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

MenuBase.java  (pdfbox-2.0.23-src):MenuBase.java  (pdfbox-2.0.24-src)
skipping to change at line 60 skipping to change at line 60
* Set if the menu should be enabled or disabled. * Set if the menu should be enabled or disabled.
* *
* @param isEnable boolean instance. * @param isEnable boolean instance.
*/ */
public void setEnableMenu(boolean isEnable) public void setEnableMenu(boolean isEnable)
{ {
menu.setEnabled(isEnable); menu.setEnabled(isEnable);
} }
/** /**
* Add the ActionListener for the menuitems. * Add the ActionListener for the menu items.
* *
* @param listener ActionListener. * @param listener ActionListener.
*/ */
public void addMenuListeners(ActionListener listener) public void addMenuListeners(ActionListener listener)
{ {
for (Component comp : menu.getMenuComponents()) for (Component comp : menu.getMenuComponents())
{ {
JMenuItem menuItem = (JMenuItem) comp; JMenuItem menuItem = (JMenuItem) comp;
removeActionListeners(menuItem); removeActionListeners(menuItem);
menuItem.addActionListener(listener); menuItem.addActionListener(listener);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)