Package de.bastiankrol.startexplorer

Source Code of de.bastiankrol.startexplorer.ActivatorForDesktopEnvironmentLayoutTests

package de.bastiankrol.startexplorer;

import de.bastiankrol.startexplorer.crossplatform.CustomDesktopEnvironmentContainer;
import de.bastiankrol.startexplorer.crossplatform.DesktopEnvironment;
import de.bastiankrol.startexplorer.crossplatform.WorkingDirectoryMode;

public class ActivatorForDesktopEnvironmentLayoutTests extends Activator
{
  @Override
  void initContext()
  {
    this.pluginContext = new PluginContext()
    {
      @Override
      void loadPreferencesFromEclipseStore()
      {
        // This values will be overwritten by initializeDefaults()
        // but there need to be some values there during createContents ->
        // initializeValues
        preferenceModel.setAutoDetectDesktopEnvironment(false);
        preferenceModel.setUseCustomeDesktopEnvironment(false);
        preferenceModel
            .setSelectedDesktopEnvironment(DesktopEnvironment.UNKNOWN);
        preferenceModel
            .setCustomDesktopEnvironmentContainer(new CustomDesktopEnvironmentContainer(
                "commandForStartFileManager",
                "commandForStartFileManagerAndSelectFile",
                WorkingDirectoryMode.NONE, "commandForStartShell",
                WorkingDirectoryMode.NONE, "commandForStartSystemApplication",
                WorkingDirectoryMode.NONE, WorkingDirectoryMode.NONE, false,
                false));
      }
    };
  }
}
TOP

Related Classes of de.bastiankrol.startexplorer.ActivatorForDesktopEnvironmentLayoutTests

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.