Examples of IPreferencesService


Examples of org.eclipse.core.runtime.preferences.IPreferencesService

  /**
   * Sets the text strings to those found in Eclipse prefs.
   */
  private void initializeValues() {

    IPreferencesService serv = Platform.getPreferencesService();

    mEprText.setText(serv.getString(Activator.PLUGIN_ID, Activator.URL_KEY,
        REGISTRY_DEFAULT, null));

    mFileText.setText(serv.getString(Activator.PLUGIN_ID,
        Activator.REG_FILE_KEY, REGISTRY_LOCAL_DEFAULT, null));

    mUseFileCheckBox.setSelection(serv.getBoolean(Activator.PLUGIN_ID,
        Activator.USE_REG_FILE_KEY, USE_REGISTRY_LOCAL_DEFAULT, null));

    mUseURLCheckBox.setSelection(serv.getBoolean(Activator.PLUGIN_ID,
        Activator.USE_REG_URL_KEY, USE_REGISTRY_URL_DEFAULT, null));
  }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService

    read();
  }

  public void read() {

    IPreferencesService serv = Platform.getPreferencesService();

    boolean useLocal = serv.getBoolean(Activator.PLUGIN_ID,
        Activator.USE_REG_FILE_KEY, false, null);
    boolean useRemote = serv.getBoolean(Activator.PLUGIN_ID,
        Activator.USE_REG_URL_KEY, true, null);
     
    if (resourceSet.getResources().isEmpty()) {

      RegistryClient.processingElements =
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService

    mURL = url;
  }

  public ServiceRegistryReader() {

        IPreferencesService serv = Platform.getPreferencesService();
       
        mURL = serv.getString(
                Activator.PLUGIN_ID, Activator.URL_KEY, "", null);
       
        Activator.logInfo("Using Registry URL: " + mURL);
       
  }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService

   *
   */

  public FileRegistryReader() {

        IPreferencesService serv = Platform.getPreferencesService();
       
        mRegFile = serv.getString(
                Activator.PLUGIN_ID, Activator.REG_FILE_KEY, "", null);
       
        Activator.logInfo("Using Local Registry : " + mRegFile);       
  }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService

           
            if (selectedFile.getFileExtension() != null
                    && selectedFile.getFileExtension(
                            ).equalsIgnoreCase(Activator.DISPEL_EXTENSION)) {
               
                IPreferencesService serv = Platform.getPreferencesService();
              
                String url = serv.getString(
                        Activator.PLUGIN_ID, Activator.URL_KEY, "", null);
               
                Activator.logInfo("Using Gateway URL: " + url);
               
                try {
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService

 
  public String getGraph(IFile dispel) {

    String graph = "";   
   
    IPreferencesService serv = Platform.getPreferencesService();

    final String url = serv.getString(
        Activator.PLUGIN_ID, Activator.URL_KEY, "", null);

        if (dispel == null || !dispel.isAccessible()) {
            throw new IllegalArgumentException ("Invalid DISPEL document");
        }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService

    if (!verifyStateIfUnsavedChanges()) {
      return;
    }
   
    IPreferencesService serv = Platform.getPreferencesService();

    String url = serv.getString(Activator.PLUGIN_ID,
        Activator.URL_KEY, "",
        null);

    Activator.logInfo("Using Gateway URL: " + url);
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService

    /**
     * Sets the text strings to those found in Eclipse prefs.
     */
    private void initializeValues() {
       
        IPreferencesService serv = Platform.getPreferencesService();
        mURLText.setText(serv.getString(
                Activator.PLUGIN_ID, Activator.URL_KEY, GATEWAY_DEFAULT, null));
    }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService

   * Submits the DISPEL workflow to the gateway.
   */
    @Override
  public void run(IAction action) {

    IPreferencesService serv = Platform.getPreferencesService();

    String url = serv.getString(Activator.PLUGIN_ID, Activator.URL_KEY, "",
        null);

    Activator.logInfo("Using Gateway URL: " + url);

    try {
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IPreferencesService

  /**
   * Returns the value of the string preference corresponding to the given key,
   * or the provided default value if not defined.
   */
  public static String getString(String key, String defaultValue) {
    IPreferencesService service = Activator.getPreferenceService();
    if (service == null)
      return null;
    return service.getString(ServerConstants.PREFERENCE_SCOPE, key, defaultValue, 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.