litesoft
@ 830
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt package org.litesoft.aokeyhole.swing; import java.io.*; import org.litesoft.aokeyhole.objects.factories.*; import org.litesoft.aokeyhole.persist.*; import org.litesoft.aokeyhole.persist.lines.*; import org.litesoft.aokeyhole.toolkit.editorviewer.*; public abstract class AbstractSwingFilesMain extends AbstractSwingMain { protected AbstractSwingFilesMain( String[] pFileNames, boolean pReadOnly, EditViewPanelFactory pEditViewPanelFactory, SubSystemFactory pSubSystemFactory ) throws IOException { super( pSubSystemFactory, pEditViewPanelFactory, pReadOnly, createPersistableFiles( pFileNames ) ); } private static SubSystemPersister[] createPersistableFiles( String[] pFileNames ) throws IOException { SubSystemPersister[] rv = new SubSystemPersister[pFileNames.length]; for ( int i = 0; i < pFileNames.length; i++ ) { rv[i] = new SubSystemLinesPersister( new FileLinesPersister( pFileNames[i] ) ); } return rv; } } |