Examples of cacheContent()


Examples of com.redhat.ceylon.cmr.api.RepositoryManagerBuilder.cacheContent()

        final MergeStrategy ms = getService(MergeStrategy.class, conf);
        if (ms != null)
            builder.mergeStrategy(ms);

        if (conf.cacheContent)
            builder.cacheContent();

        final ContentTransformer ct = getService(ContentTransformer.class, conf);
        if (ct != null)
            builder.contentTransformer(ct);
View Full Code Here

Examples of org.freeplane.plugin.script.ScriptingConfiguration.ScriptMetaData.cacheContent()

    private JCommandMenuButton createScriptButton(final String scriptName, final String scriptPath,
                                                  ExecutionMode executionMode) {
        final ScriptMetaData metaData = configuration.getMenuTitleToMetaDataMap().get(scriptName);
        final String title = scriptNameToMenuItemTitle(scriptName);
        AFreeplaneAction action = new ExecuteScriptAction(scriptName, title, scriptPath, executionMode,
            metaData.cacheContent(), metaData.getPermissions());
        ResizableIcon icon = ActionUtils.getActionIcon(action);
        final JCommandMenuButton scriptEntry = new JCommandMenuButton(title, icon);
        scriptEntry.setActionRichTooltip(createRichTooltip(title, metaData));
        scriptEntry.addActionListener(action);
        scriptEntry.setFocusable(false);
View Full Code Here

Examples of org.freeplane.plugin.script.ScriptingConfiguration.ScriptMetaData.cacheContent()

    assertTrue("ON_SELECTED_NODE was set", metaData.getExecutionModes().contains(ExecutionMode.ON_SELECTED_NODE));
    assertTrue("ON_SELECTED_NODE_RECURSIVELY was set",
        metaData.getExecutionModes().contains(ExecutionMode.ON_SELECTED_NODE_RECURSIVELY));
    assertEquals("menu location for ON_SELECTED_NODE_RECURSIVELY was set explicitely", "/menu_bar/help",
        metaData.getMenuLocation(ExecutionMode.ON_SELECTED_NODE_RECURSIVELY));
    assertTrue("CacheScriptContent was set to true", metaData.cacheContent());
  }

  @Test
  public void testAnalyseScriptContentWithTitleKey() {
    // it's case insensitive
View Full Code Here

Examples of org.freeplane.plugin.script.ScriptingConfiguration.ScriptMetaData.cacheContent()

            + "\n//   @ExecutionModes (\t{\n  ExecutionMode.ON_selECTED_NODE_recursively,\n \tON_SelECTED_NODE_RECURSIVELY } )";
    ScriptMetaData metaData = new ScriptingConfiguration().analyseScriptContent(content, scriptName);
    assertEquals("duplicated modes should not matter", 1, metaData.getExecutionModes().size());
    assertTrue("ON_SELECTED_NODE_RECURSIVELY was set",
        metaData.getExecutionModes().contains(ExecutionMode.ON_SELECTED_NODE_RECURSIVELY));
    assertTrue("CacheScriptContent=false is the default", !metaData.cacheContent());
  }

  @Test
  public void testAnalyseScriptContentForFormula() {
    String content = "=\"blabla\"" //
View Full Code Here

Examples of org.freeplane.plugin.script.ScriptingConfiguration.ScriptMetaData.cacheContent()

    assertEquals("single node mode should be removed for '=' scripts", 2, metaData.getExecutionModes().size());
    assertTrue("ON_SELECTED_NODE shouldn't been removed",
        metaData.getExecutionModes().contains(ExecutionMode.ON_SELECTED_NODE));
    assertTrue("ON_SELECTED_NODE_RECURSIVELY shouldn't been removed",
        metaData.getExecutionModes().contains(ExecutionMode.ON_SELECTED_NODE_RECURSIVELY));
    assertTrue("CacheScriptContent was set to true", metaData.cacheContent());
    // assert that duplicate entries do no harm
  }

  @Test
  public void testParseExecutionModes() throws Exception {
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.