Codota Logo
RuleModeller.isVariableNameUsed
Code IndexAdd Codota to your IDE (free)

How to use
isVariableNameUsed
method
in
org.kie.guvnor.guided.rule.client.editor.RuleModeller

Best Java code snippets using org.kie.guvnor.guided.rule.client.editor.RuleModeller.isVariableNameUsed (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public void onClick( ClickEvent event ) {
    String var = varName.getText();
    if ( modeller.isVariableNameUsed( var ) ) {
      Window.alert( Constants.INSTANCE.TheVariableName0IsAlreadyTaken( var ) );
      return;
    }
    con.setFieldBinding( var );
    modeller.refreshWidget();
    popup.hide();
  }
} );
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public void onClick( ClickEvent event ) {
    String var = varTxt.getText();
    if ( modeller.isVariableNameUsed( var ) ) {
      Window.alert( Constants.INSTANCE.TheVariableName0IsAlreadyTaken( var ) );
      return;
    }
    pattern.setBoundName( varTxt.getText() );
    modeller.refreshWidget();
    popup.hide();
  }
} );
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public void onClick( ClickEvent event ) {
    String var = varName.getText();
    if ( getModeller().isVariableNameUsed( var ) ) {
      Window.alert( Constants.INSTANCE.TheVariableName0IsAlreadyTaken( var ) );
      return;
    }
    expression.setBinding( var );
    getModeller().refreshWidget();
    popup.hide();
  }
} );
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public void onClick( ClickEvent event ) {
    String var = varName.getText();
    if ( getModeller().isVariableNameUsed( var ) && ( ( model.getBoundName() != null && model.getBoundName().equals( var ) == false ) || model.getBoundName() == null ) ) {
      Window.alert( Constants.INSTANCE.TheVariableName0IsAlreadyTaken( var ) );
      return;
    }
    model.setBoundName( var );
    setModified( true );
    getModeller().refreshWidget();
    popup.hide();
  }
} );
org.kie.guvnor.guided.rule.client.editorRuleModellerisVariableNameUsed

Javadoc

Returns true is a var name has already been used either by the rule, or as a global.

Popular methods of RuleModeller

  • <init>
  • addActionsButtonsToLayout
  • addLineIcon
  • clearLineIcons
  • doLayout
  • getAddAttribute
  • getModel
  • getPath
  • getRuleModeller
  • getSuggestionCompletions
  • getWidgetFactory
  • initWidget
  • getWidgetFactory,
  • initWidget,
  • isDSLEnabled,
  • isDirty,
  • isLock,
  • isReadOnly,
  • isTemplate,
  • lockLHS,
  • lockRHS

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • onCreateOptionsMenu (Activity)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now