Changeset 1532 for trunk/src/org/expeditee/gui/FrameIO.java
- Timestamp:
- 08/31/20 16:26:59 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameIO.java
r1505 r1532 816 816 // create the new frameset 817 817 Frame one = FrameIO.CreateFrameset(DELETED_FRAMES, toDelete 818 .getPath() );818 .getPath(), null); 819 819 framePath = one.getPath(); 820 820 lastNumber = 0; … … 1015 1015 * @param frameset 1016 1016 * The name of the Frameset to create 1017 * @param zeroFrameItems TODO 1017 1018 * @return The first Frame of the new Frameset (Frame.1) 1018 1019 */ 1019 public static Frame CreateFrameset(String frameset, String path )1020 public static Frame CreateFrameset(String frameset, String path, Collection<Item> zeroFrameItems) 1020 1021 throws Exception { 1021 return CreateFrameset(frameset, path, false );1022 return CreateFrameset(frameset, path, false, zeroFrameItems); 1022 1023 } 1023 1024 … … 1257 1258 } catch (RuntimeException e) { 1258 1259 try { 1259 CreateFrameset(oldFramesetName, toSave.getPath() );1260 CreateFrameset(oldFramesetName, toSave.getPath(), null); 1260 1261 nextnum = 1; 1261 1262 } catch (Exception e1) { … … 1584 1585 * @param name 1585 1586 * The Frameset name to use 1587 * @param zeroFrameItems TODO 1586 1588 * @return The name of the first Frame in the newly created Frameset (the .1 1587 1589 * frame) 1588 1590 */ 1589 public static Frame CreateNewFrameset(String name ) throws Exception {1591 public static Frame CreateNewFrameset(String name, Collection<Item> zeroFrameItems) throws Exception { 1590 1592 String path = DisplayController.getCurrentFrame().getPath(); 1591 1593 … … 1595 1597 } 1596 1598 1597 Frame newFrame = FrameIO.CreateFrameset(name, path );1599 Frame newFrame = FrameIO.CreateFrameset(name, path, zeroFrameItems); 1598 1600 1599 1601 if (newFrame == null) { 1600 1602 // Cant create directories if the path is readonly or there is no 1601 1603 // space available 1602 newFrame = FrameIO.CreateFrameset(name, FrameIO.FRAME_PATH );1604 newFrame = FrameIO.CreateFrameset(name, FrameIO.FRAME_PATH, zeroFrameItems); 1603 1605 } 1604 1606 … … 1610 1612 } 1611 1613 1612 public static Frame CreateNewGroup(String name ) {1614 public static Frame CreateNewGroup(String name, Collection<Item> zeroFrameItems) { 1613 1615 try { 1614 Frame oneFrame = FrameIO.CreateFrameset(name, FrameIO.GROUP_PATH );1616 Frame oneFrame = FrameIO.CreateFrameset(name, FrameIO.GROUP_PATH, zeroFrameItems); 1615 1617 oneFrame.setPermission(new PermissionTriple(UserAppliedPermission.full, UserAppliedPermission.none, UserAppliedPermission.none)); 1616 1618 … … 1694 1696 } 1695 1697 1696 public static Frame CreateFrameset(String frameset, String path, boolean recreate ) throws InvalidFramesetNameException, ExistingFramesetException {1698 public static Frame CreateFrameset(String frameset, String path, boolean recreate, Collection<Item> zeroFrameItems) throws InvalidFramesetNameException, ExistingFramesetException { 1697 1699 String conversion = frameset + " --> "; 1698 1700 … … 1772 1774 base.setPath(path); 1773 1775 base.change(); 1776 if (zeroFrameItems != null) { 1777 base.addAllItems(zeroFrameItems); 1778 } 1774 1779 SaveFrame(base, false); 1775 1780
Note:
See TracChangeset
for help on using the changeset viewer.