Examples of Settings


Examples of org.webcamp.settings.dto.Settings

public class SettingsDaoImpl extends JdbcTemplate implements SettingsDao {

  @Override
  public Settings loadSettings() {
    Settings res = new Settings();
    Connection conn = null;
    try {
      conn = getDataSource().getConnection();

      PreparedStatement ps = conn.prepareStatement("select name, value from settings");
      ResultSet rs = ps.executeQuery();
      while (rs.next()) {
        String name = rs.getString("name");
        String value = rs.getString("value");
        res.setSetting(name, value);
      }
      System.out.println("Settings were loaded");
      return res;
    } catch (SQLException e) {
      throw new RuntimeException(e);
View Full Code Here

Examples of org.wicketstuff.pickwick.backend.Settings

import junit.framework.TestCase;

public class FeedGeneratorTest {
  public static void main() throws Exception {
    // FIXME use those settings by wiring Settings interface to this instance
    Settings settings = new DefaultSettings() {
      public File getImageDirectoryRoot() {
        return new File("/tmp/a");
      }
      public String getBaseURL() {
        return "http://localhost:8080";
View Full Code Here

Examples of ponkOut.Settings

  private ControllerAction controllerLeft;
  private ControllerAction controllerRight;
  private ControllerAction controllerFire;

  public ControllerInput(int player) {
    Settings settings = Settings.getInstance();
    controller = InputManager.getInstance().getController(settings.getControllerIndex(player));

    speed = settings.getControllerSpeed(player) * 4.0f;
    controllerUp = settings.getControllerUp(player);
    controllerDown = settings.getControllerDown(player);
    controllerLeft = settings.getControllerLeft(player);
    controllerRight = settings.getControllerRight(player);
    controllerFire = settings.getControllerFire(player);
  }
View Full Code Here

Examples of processing.app.Settings

   *
   */
  private void checkTabSettings ()
  {
    File sketchProps = getSketchPropertiesFile();
    Settings settings;

    try {
      settings = new Settings(sketchProps);
    } catch ( IOException ioe ) {
      ioe.printStackTrace();
      return;
    }
    if ( settings == null )
    {
      statusError( "Unable to create sketch properties file!" );
      return;
    }

    sketchTabsSize = settings.get( "coffee.editor.tabs.size" );
    String editorTabsSize = Preferences.get( "editor.tabs.size" );

    if ( sketchTabsSize != null )
    {
      if ( !sketchTabsSize.equals( editorTabsSize ) )
      {
        // TODO: make this an alert?
        // how can it be fixed?
        System.err.println(
          String.format( "This sketch \"%s\" has a different tab setting as your editor", getSketch().getName() ));
      }
    }
    else
    {
      sketchTabsSize = editorTabsSize;

      settings.set( "mode", "de.bezier.mode.coffeescript.CoffeeScriptMode" );
      settings.set( "coffee.editor.tabs.size", editorTabsSize );
      settings.save();
    }
  }
View Full Code Here

Examples of scala.tools.nsc.Settings

  @Override public String scriptName() {
    return MAIN_SCRIPT;
  }

  private static IMain initInterpreter(String interpreterClasspath) throws ClassNotFoundException {
    Settings settings = new Settings();
    MutableSettings.PathSetting bootClasspath = (MutableSettings.PathSetting) settings.bootclasspath();
    bootClasspath.append(interpreterClasspath);

    ((MutableSettings.BooleanSetting) settings.usejavacp()).tryToSetFromPropertyValue("true");

    return new IMain(settings, new PrintWriter(interpreterOutput));
  }
View Full Code Here

Examples of settings.Settings

    //settings
    private static Settings settings;
   
   
    public ChatEngine(){
      this.settings=new Settings();
      conversation = new Conversation();
      connectWindow = new ConnectWindow();
        infoWindow = new InfoWindow();
        settingsWindow = new SettingsWindow();
        mainWindow = new MainWindow();
View Full Code Here

Examples of silvertrout.settings.Settings

     * A basic constructor
     *
     */
    public IRC() {
        try {
            settings = new Settings();
        } catch (ConfigurationParseException ex) {
            System.err.println(ex.getMessage());
            System.exit(1);
        }
        networks = new ArrayList<Network>();
View Full Code Here

Examples of uk.org.whoami.authme.settings.Settings

    private String columnIp;
    private String columnLastLogin;
    private MiniConnectionPoolManager conPool;

    public MySQLDataSource() throws ClassNotFoundException, SQLException {
        Settings s = Settings.getInstance();
        this.host = s.getMySQLHost();
        this.port = s.getMySQLPort();
        this.username = s.getMySQLUsername();
        this.password = s.getMySQLPassword();

        this.database = s.getMySQLDatabase();
        this.tableName = s.getMySQLTablename();
        this.columnName = s.getMySQLColumnName();
        this.columnPassword = s.getMySQLColumnPassword();
        this.columnIp = s.getMySQLColumnIp();
        this.columnLastLogin = s.getMySQLColumnLastLogin();

        connect();
        setup();
    }
View Full Code Here

Examples of unify.data.Settings

        }
      }
      Dao<Settings, Integer> settingsDao = DaoManager.createDao(connectionSource, Settings.class);
      Dao<Feed, Integer> feedDao = DaoManager.createDao(connectionSource, Feed.class);
      Dao<Search, Integer> searchDao = DaoManager.createDao(connectionSource, Search.class);
      Settings settings = Settings.getInstance();
      for(Feed feed : settings.getFeeds()) {
        feedDao.createOrUpdate(feed);
      }
      for(Search search : settings.getSearches()) {
        searchDao.createOrUpdate(search);
      }
      settingsDao.createOrUpdate(settings);
      LOGGER.fine("Stored " + numShows + " shows, " + numSeasons + " seasons, and " + numEpisodes + " episodes in database.");
      connectionSource.close();
View Full Code Here

Examples of util.settings.Settings

    setJMenuBar(bar);
       
       
           

    settings = new Settings("config.ini", true);
    Settings.set(settings);
   
    String routineFile = settings.get("routineFile", null);
   
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.