Tabnine Logo
FormEditorContextManager.newContext
Code IndexAdd Tabnine to your IDE (free)

How to use
newContext
method
in
org.jbpm.formModeler.api.client.FormEditorContextManager

Best Java code snippets using org.jbpm.formModeler.api.client.FormEditorContextManager.newContext (Showing top 1 results out of 315)

origin: org.jbpm/jbpm-form-modeler-editor-backend

@Override
protected FormModelerContent constructContent( Path path, Overview overview ) {
  try {
    org.uberfire.java.nio.file.Path kiePath = Paths.convert( path );
    Form form = findForm( kiePath );
    FormEditorContextTO contextTO = new FormEditorContextTO();
    if (form == null) {
      contextTO.setLoadError( true );
      form = formManager.createForm(path.getFileName());
    }
    String formPath = kiePath.toUri().toString();
    FormEditorContext context = formEditorContextManager.newContext(form, formPath);
    contextTO.setCtxUID( context.getUID() );
    FormModelerContent result = new FormModelerContent();
    result.setContextTO( contextTO );
    result.setPath( path );
    result.setOverview( overview );
    resourceOpenedEvent.fire(new ResourceOpenedEvent( path, sessionInfo ));
    return result;
  } catch (Exception e) {
    log.warn("Error loading form " + path.toURI(), e);
  }
  return null;
}
org.jbpm.formModeler.api.clientFormEditorContextManagernewContext

Popular methods of FormEditorContextManager

  • getFormEditorContext
  • getRootEditorContext
  • removeEditingForm

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top PhpStorm plugins
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