Examples of UserPreferences


Examples of edu.umd.cs.findbugs.config.UserPreferences

        }
    }

    private static UserPreferences getWorkspacePreferences() {
        // create initially default settings
        UserPreferences userPrefs = FindBugsPreferenceInitializer.createDefaultUserPreferences();
        File prefsFile = WORKSPACE_PREFS_PATH.toFile();
        if (!prefsFile.isFile()) {
            return userPrefs;
        }
        // load custom settings over defaults
        FileInputStream in;
        try {
            in = new FileInputStream(prefsFile);
            userPrefs.read(in);
        } catch (IOException e) {
            FindbugsPlugin.getDefault().logException(e, "Error reading custom FindBugs preferences for workspace");
        }
        return userPrefs;
    }
View Full Code Here

Examples of edu.umd.cs.findbugs.config.UserPreferences

        }
        try {
            // force is preventing us for out-of-sync exception if file was
            // changed externally
            InputStream in = userPrefsFile.getContents(true);
            UserPreferences userPrefs = FindBugsPreferenceInitializer.createDefaultUserPreferences();
            userPrefs.read(in);
            return userPrefs;
        } catch (IOException e) {
            FindbugsPlugin.getDefault().logException(e, "Could not read user preferences for project");
            return null;
        }
View Full Code Here

Examples of edu.umd.cs.findbugs.config.UserPreferences

      final MavenPluginWrapper mavenPluginWrapper) throws CoreException {
    log.debug("entering handleProjectConfigurationChange");
    final MavenPluginConfigurationTranslator mavenFindbugsConfig = MavenPluginConfigurationTranslator
        .newInstance(this, session,
            mavenPluginWrapper, project);
    UserPreferences prefs;
    try {
      final List<MojoExecution> mojoExecutions = mavenPluginWrapper.getMojoExecutions();
      if (mojoExecutions.size() != 1) {
        log.error("Wrong number of executions. Expected 1. Found " + mojoExecutions.size());
        return;
View Full Code Here

Examples of edu.umd.cs.findbugs.config.UserPreferences

  }

  private UserPreferences buildFindbugsPreferences(final MavenPluginConfigurationTranslator pluginCfgTranslator)
      throws CoreException {
    log.debug("entering buildFindbugsPreferences");
    final UserPreferences prefs = UserPreferences
        .createDefaultUserPreferences();
    pluginCfgTranslator.setIncludeFilterFiles(prefs);
    pluginCfgTranslator.setExcludeFilterFiles(prefs);
    //pluginCfgTranslator.setBugCatagories(prefs);
    pluginCfgTranslator.setEffort(prefs);
View Full Code Here

Examples of org.cyclop.model.UserPreferences

  @Inject
  private JsonMarshaller marshaller;

  @Test
  public void testMarshal() {
    UserPreferences up = new UserPreferences();
    up.setShowCqlCompletionHint(false);
    String res = marshaller.marshal(up);
    assertEquals(
        "{\"e_hi\":\"0\",\"e_he\":\"1\",\"e_ro\":0,\"i_hi\":\"1\",\"i_ce\":\"0\",\"i_pa\":\"0\",\"p_ei\":5,\"p_hi\":50,\"p_ii\":100}",
        res);
  }
View Full Code Here

Examples of org.eobjects.datacleaner.user.UserPreferences

  }

  public static HttpClient getHttpClient() {
    DefaultHttpClient httpClient = new DefaultHttpClient();

    final UserPreferences userPreferences = UserPreferences.getInstance();
    if (userPreferences.isProxyEnabled()) {
      // set up HTTP proxy
      final String proxyHostname = userPreferences.getProxyHostname();
      final int proxyPort = userPreferences.getProxyPort();

      final HttpHost proxy = new HttpHost(proxyHostname, proxyPort);
      httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);

      if (userPreferences.isProxyAuthenticationEnabled()) {
        final AuthScope authScope = new AuthScope(proxyHostname, proxyPort);
        final UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(
            userPreferences.getProxyUsername(), userPreferences.getProxyPassword());
        httpClient.getCredentialsProvider().setCredentials(authScope, credentials);
      }
    }

    return httpClient;
View Full Code Here

Examples of org.eobjects.datacleaner.user.UserPreferences

        analysisJobBuilderWindow.setDatastoreSelectionEnabled(false);
        analysisJobBuilderWindow.setDatastore(singleDatastore, true);
      }
      analysisJobBuilderWindow.open();

      final UserPreferences userPreferences = injector.getInstance(UserPreferences.class);
      final WindowContext windowContext = injector.getInstance(WindowContext.class);

      // set up HTTP service for ExtensionSwap installation
      loadExtensionSwapService(userPreferences, windowContext);

      // load regex swap regexes if logged in
      final RegexSwapUserPreferencesHandler regexSwapHandler = new RegexSwapUserPreferencesHandler(
          (MutableReferenceDataCatalog) configuration.getReferenceDataCatalog());
      userPreferences.addLoginChangeListener(regexSwapHandler);

      final ExitActionListener exitActionListener = _options.getExitActionListener();
      if (exitActionListener != null) {
        windowContext.addExitActionListener(exitActionListener);
      }
View Full Code Here

Examples of org.jasig.portal.UserPreferences

    String activeTab = "none";

    try
    {
      // Get the profile associated with the layout currently being modified
      UserPreferences userPrefsFromStore = context.getUserPreferencesFromStore(context.getCurrentUserPreferences().getProfile());
      activeTab = userPrefsFromStore.getStructureStylesheetUserPreferences().getParameterValue("activeTab");
    }
    catch (Exception e)
    {
      log.error( "TabColumnPrefsState::getAcctiveTab : Unable to retrieve active tab.");
    }
View Full Code Here

Examples of org.rhq.coregui.client.util.preferences.UserPreferences

                }

                //update the sessionSubject appropriately
                sessionSubject = loggedInSubject;
                sessionState = State.IS_LOGGED_IN;
                userPreferences = new UserPreferences(loggedInSubject);
                userPreferences.setAutomaticPersistence(true);

                GWTServiceLookup.getSystemService().getSessionTimeout(new AsyncCallback<String>() {
                    @Override
                    public void onSuccess(String result) {
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.