Changeset 36
- Timestamp:
- 10/03/02 17:35:06 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/j/AbstractMode.java
r17 r36 3 3 * 4 4 * Copyright (C) 1998-2002 Peter Graves 5 * $Id: AbstractMode.java,v 1. 2 2002-10-01 19:21:28piso Exp $5 * $Id: AbstractMode.java,v 1.3 2002-10-03 17:35:06 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 457 457 } 458 458 459 /**460 * {@inheritDoc}461 * This returns the default toolbar from <code>frame</code>.462 *463 * @param frame {@inheritDoc}464 * @return {@inheritDoc}465 */466 459 public ToolBar getToolBar(Frame frame) 460 { 461 ToolBar tb = getCustomToolBar(frame); 462 if (tb != null) 463 return tb; 464 return getDefaultToolBar(frame); 465 } 466 467 protected ToolBar getCustomToolBar(Frame frame) 468 { 469 String filename = 470 Editor.preferences().getStringProperty(getFullKey("toolbar")); 471 if (filename != null) { 472 File file = File.getInstance(filename); 473 if (file != null && file.isFile()) { 474 ToolBar tb = ToolBar.createToolBar(frame, file); 475 if (tb != null) 476 return tb; 477 } 478 } 479 return null; 480 } 481 482 protected ToolBar getDefaultToolBar(Frame frame) 467 483 { 468 484 return frame.getDefaultToolBar();
Note: See TracChangeset
for help on using the changeset viewer.