Examples of Settings


Examples of com.vaynberg.wicket.select2.Settings

        if(select2Field == null) {
            setRequired(getScalarModel().isRequired());
            select2Field = Select2ChoiceUtil.newSelect2Choice(ID_AUTO_COMPLETE, model, getScalarModel());
            setProviderAndCurrAndPending(select2Field, getScalarModel().getActionArgsHint());
            if(!getScalarModel().hasChoices()) {
                final Settings settings = select2Field.getSettings();
                ScalarModel scalarModel = getScalarModel();
                final int minLength = scalarModel.getAutoCompleteMinLength();
                settings.setMinimumInputLength(minLength);
                settings.setPlaceholder(scalarModel.getName());
            }
            addOrReplace(select2Field);
        } else {
            //
            // the select2Field already exists, so the widget has been rendered before.  If it is
View Full Code Here

Examples of de.chucknorris.client.chucknorristrayicon.settings.Settings

    private CNTrayIcon trayIcon;
    private Settings settings;
   

    public App() {
        this.settings = new Settings();
        if(LOG.isDebugEnabled()){
            LOG.debug("Settings created: {}", this.settings);
        }
        this.configDialogController = new ConfigDialogController(this.settings);
        if(LOG.isDebugEnabled()){
View Full Code Here

Examples of de.kunysch.tvbrowser.Settings

    this.plugin = plugin;
    this.day = day;
    this.titleFormat = new MessageFormat(mLocalizer.msg("title", "Day summary - {0,date} - LocalImdb {1}")); //$NON-NLS-1$
    this.titleFormatShowAll = new MessageFormat(mLocalizer.msg(
        "title.all", "Day summary - {0,date}-{1,date} - LocalImdb {2}")); //$NON-NLS-1$
    final Settings settings = SettingsKeys.getSettings();
    setLocation(settings.getInt(SettingsKeys.DIALOG_X), settings.getInt(SettingsKeys.DIALOG_Y));
    setSize(settings.getInt(SettingsKeys.DIALOG_W), settings.getInt(SettingsKeys.DIALOG_H));
    updateDialog(0);
    initColumnLayout();
  }
View Full Code Here

Examples of de.willuhn.jameica.system.Settings

   */
  protected static String getRDHLib() throws ApplicationException
  {
    AbstractPlugin p    = Application.getPluginLoader().getPlugin(HBCI.class);
    PluginResources res = p.getResources();
    Settings settings   = res.getSettings();
    Manifest mf         = p.getManifest();

    String file = null;
 
    switch (Application.getPlatform().getOS())
    {
      case Platform.OS_LINUX:
        file = settings.getString("sizrdh.nativelib","libhbci4java-sizrdh-linux-gcc3.so");
        break;
      case Platform.OS_WINDOWS:
        file = settings.getString("sizrdh.nativelib","hbci4java-sizrdh-win32.dll");;
        break;
    }
    if (file == null)
      throw new ApplicationException(res.getI18N().tr("SizRDH-Schl�sseldisketten werden f�r Ihr Betriebssystem nicht von Hibiscus unterst�tzt"));

View Full Code Here

Examples of edu.unc.cs.sportsync.main.settings.Settings

  public Application(Composite parent, int style) {
    super(parent, style);
    audioControl = new AudioControl();
    audioControl.prepareMixerList();
    settings = new Settings();
    setLayout(new FillLayout());

    audioControl.setSettings(settings);

    // load XWT
View Full Code Here

Examples of fmpp.setting.Settings

    String relpathTmp;
    relpathTmp = gappFile.getParentFile().getAbsolutePath();
    final String relpath = relpathTmp;
    File templateDir = new File(templateDirName);
    System.out.println("AppDoc: using template directory " + templateDir);
    Settings settings = new fmpp.setting.Settings(templateDir);
    settings.define("outFileExtension", Settings.TYPE_STRING, false, true);
    settings.load(new File(templateDir, "config.fmpp"));
    // the directory that will contain all output files
    System.out.println("AppDoc: using output directory " + outputDirName);
    settings.setWithString("outputRoot", outputDirName);
    String extension = (String) settings.get("outFileExtension");
    if (extension == null) {  // if somebody
      throw new GateRuntimeException("Parameter outfileExtension not set in the config file!");
    }
    String docFileName = gappFile.getName() + ".doc" + settings.get("outFileExtension");
    System.out.println("AppDoc: generating documentation root file: " + docFileName);

    String gappFileNameSlashes = gappFileName;
    String docFileNameSlashes = docFileName;
    String gatehomeSlashes = gatehome;
    String relpathSlashes = relpath;
    // TODO: this is rather a hack. We should figure out how to construct
    // the settings datastructure directly instead of supplying a string
    // where we have to struggle to get the file path names right.
    if(File.separator.equals("\\")) {
      gappFileNameSlashes = gappFileName.replaceAll("\\\\", "/");
      docFileNameSlashes = docFileName.replaceAll("\\\\","/");
      gatehomeSlashes = gatehome.replaceAll("\\\\", "/");
      relpathSlashes = relpath.replaceAll("\\\\", "/");
    }
    String settingsString =
      "{doc: xml(\"" + gappFileNameSlashes + "\")\n"
      + "docFile: \"" + docFileNameSlashes + "\"\n"
      + "gatehome: \"" + gatehomeSlashes + "\"\n"
      + "relpath: \"" + relpathSlashes + "\"\n"
      + "}";
    //System.out.println("Settings string is: "+settingsString);
    settings.setWithString("data",settingsString);
    settings.addProgressListener(new ConsoleProgressListener());
    settings.execute();
  } // generateDoc
View Full Code Here

Examples of hudson.plugins.analysis.core.Settings

     * Tests if a "true" PluginLogger is created, when the Quiet Mode is deactivated.
     */
    @Test
    public void quietModeDeactivated() {
        // Given
        Settings settings = mock(Settings.class);
        LoggerFactory loggerFactory = new LoggerFactory(settings);

        // When
        when(settings.getQuietMode()).thenReturn(false);
        PluginLogger logger = loggerFactory.createLogger(mock(PrintStream.class), "");

        // Then
        assertFalse("LogMode is not Quiet but LoggerFactory creates a NullLogger!", logger instanceof NullLogger);
    }
View Full Code Here

Examples of jason.runtime.Settings

      //RunCentralisedMAS.setupLogger();
     
        // set up the Jason agent
        try {
            Agent ag = new Agent();
            setTS(ag.initAg(this, new DefaultBeliefBase(), "data/agent/example/demo.asl", new Settings()));
        } catch (Exception ex) {
            logger.log(Level.SEVERE, "Init error", ex);
        }
    }
View Full Code Here

Examples of krasa.formatter.settings.Settings

        }
    }

    private void changeFormatter(Project project, Settings.Formatter lf) {
        ProjectSettingsComponent instance = ProjectSettingsComponent.getInstance(project);
        final Settings state = instance.getState();
        state.setFormatter(lf);
        instance.loadState(state);
    }
View Full Code Here

Examples of main.settings.Settings

  {
    setLayout(new BorderLayout());

    AbstractSettingPanel.intializePanels();

    tree = new JTree(new Settings());
    tree.getSelectionModel().setSelectionMode(
        TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeSelectionListener(this);

    splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
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.