Ignore:
Timestamp:
01/29/14 11:22:51 (10 years ago)
Author:
jts21
Message:

Move some settings into subpackages to tidy up the main settings page a bit, and make settings parser look for settings in subpages of the current settings page if it finds a setting it doesn't know what to do with

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameIO.java

    r761 r778  
    3131import org.expeditee.items.ItemUtils;
    3232import org.expeditee.items.PermissionPair;
     33import org.expeditee.items.Text;
    3334import org.expeditee.items.UserAppliedPermission;
    34 import org.expeditee.items.Text;
    3535import org.expeditee.network.FrameShare;
    3636import org.expeditee.settings.UserSettings;
     37import org.expeditee.settings.folders.FolderSettings;
     38import org.expeditee.settings.templates.TemplateSettings;
    3739import org.expeditee.stats.Formatter;
    3840import org.expeditee.stats.Logger;
     
    218220                } else {
    219221
    220                         for (String path : UserSettings.FrameDirs.get()) {
     222                        for (String path : FolderSettings.FrameDirs.get()) {
    221223                                loaded = LoadKnowPath(path, framename);
    222224                                if (loaded != null) {
     
    246248                StringBuffer list = new StringBuffer();
    247249
    248                 for (String path : UserSettings.FrameDirs.get()) {
     250                for (String path : FolderSettings.FrameDirs.get()) {
    249251                        File files = new File(path);
    250252                        if (!files.exists())
     
    308310                }
    309311
    310                 for (String path : UserSettings.FrameDirs.get()) {
     312                for (String path : FolderSettings.FrameDirs.get()) {
    311313                        if (getFrameFullPathName(path, frameName) != null)
    312314                                return true;
     
    319321                String fullPath = null;
    320322                if (path == null) {
    321                         for (String possiblePath : UserSettings.FrameDirs.get()) {
     323                        for (String possiblePath : FolderSettings.FrameDirs.get()) {
    322324                                fullPath = getFrameFullPathName(possiblePath, frameName);
    323325                                if (fullPath != null)
     
    12511253        public static Boolean canAccessFrameset(String framesetName) {
    12521254                framesetName = framesetName.toLowerCase();
    1253                 for (String path : UserSettings.FrameDirs.get()) {
     1255                for (String path : FolderSettings.FrameDirs.get()) {
    12541256                        if ((new File(path + framesetName)).exists())
    12551257                                return true;
     
    13091311                Frame base = null;
    13101312                try {
    1311                         base = LoadFrame(UserSettings.DefaultFrame.get());
     1313                        base = LoadFrame(TemplateSettings.DefaultFrame.get());
    13121314                } catch (Exception e) {
    13131315                }
     
    13881390
    13891391                // Search all the available directories for the directory
    1390                 for (String path : UserSettings.FrameDirs.get()) {
     1392                for (String path : FolderSettings.FrameDirs.get()) {
    13911393                        String source = path + framesetName.toLowerCase() + File.separator;
    13921394                        File framesetDirectory = new File(source);
     
    14281430                // search through all the directories to find the frameset we are
    14291431                // copying
    1430                 for (String path : UserSettings.FrameDirs.get()) {
     1432                for (String path : FolderSettings.FrameDirs.get()) {
    14311433                        String source = path + framesetToCopy.toLowerCase()
    14321434                                        + File.separator;
Note: See TracChangeset for help on using the changeset viewer.