congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Controller.addApplicationLifecycleListener
Code IndexAdd Tabnine to your IDE (free)

How to use
addApplicationLifecycleListener
method
in
org.freeplane.features.mode.Controller

Best Java code snippets using org.freeplane.features.mode.Controller.addApplicationLifecycleListener (Showing top 2 results out of 315)

origin: freeplane/freeplane

private void registerInitScripts(ScriptingGuiConfiguration configuration) {
  final List<IScript> initScripts = configuration.getInitScripts();
  final List<File> initScriptFiles = configuration.getInitScriptFiles();
  if (!initScripts.isEmpty())
  Controller.getCurrentController().addApplicationLifecycleListener(new ApplicationLifecycleListener() {
    @Override
    public void onStartupFinished() {
      for (int i = 0; i < initScriptFiles.size(); i++) {
        LogUtils.info("running init script " + initScriptFiles.get(i));
        new ScriptRunner(initScripts.get(i)).execute(null);
      }
    }
    @Override
    public void onApplicationStopped() {
    }
  });
}
origin: freeplane/freeplane

final FreeplaneSurveyProperties freeplaneSurveyProperties = new FreeplaneSurveyProperties();
if(freeplaneSurveyProperties.mayAskUserToFillSurveys()) {
  controller.addApplicationLifecycleListener(new SurveyStarter(freeplaneSurveyProperties, new SurveyRunner(freeplaneSurveyProperties), Math.random()));
org.freeplane.features.modeControlleraddApplicationLifecycleListener

Popular methods of Controller

  • getCurrentController
  • getCurrentModeController
  • getMap
  • getMapViewManager
  • getModeController
  • getViewController
  • getResourceController
  • getSelection
  • addOptionValidator
  • getExtension
  • <init>
  • addAction
  • <init>,
  • addAction,
  • addActionIfNotAlreadySet,
  • addExtension,
  • addMapLifeCycleListener,
  • addModeController,
  • close,
  • closeAllMaps,
  • exec

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now