RuleModeller extends Composite implements
        RuleModelEditor { public boolean lockLHS() { return isLock(RuleAttributeWidget.LOCK_LHS); } RuleModeller(final RuleModel model,
                        final Collection<RuleModellerActionPlugin> actionPlugins,
                        final AsyncPackageDataModelOracle oracle,
                        final ModellerWidgetFactory widgetFactory,
                        final EventBus eventBus,
                        final boolean isReadOnly,
                        final boolean isDSLEnabled);  RuleModeller(final RuleModel model,
                        final AsyncPackageDataModelOracle oracle,
                        final ModellerWidgetFactory widgetFactory,
                        final EventBus eventBus,
                        final boolean isReadOnly);  RuleModeller(final RuleModel model,
                        final Collection<RuleModellerActionPlugin> actionPlugins,
                        final AsyncPackageDataModelOracle oracle,
                        final ModellerWidgetFactory widgetFactory,
                        final RuleModellerConfiguration configuration,
                        final EventBus eventBus,
                        final boolean isReadOnly); void setRuleNamesForPackage(final Collection<String> ruleNames); void initWidget(); boolean showRHS(); boolean lockRHS(); boolean showLHS(); boolean lockLHS(); void refreshWidget(); RuleModel getModel(); Collection<RuleModellerActionPlugin> getActionPlugins(); boolean isVariableNameUsed(String name); AsyncPackageDataModelOracle getDataModelOracle(); ModellerWidgetFactory getWidgetFactory(); RuleModeller getRuleModeller(); Map<String, Object> getServiceInvocationCache(); boolean isTemplate(); Path getPath(); boolean isReadOnly(); boolean isDSLEnabled();  }
@Test public void testLockLHSPositive() { model.addMetadata(new RuleMetadata(RuleAttributeWidget.LOCK_LHS, "")); assertTrue(ruleModeller.lockLHS()); }
@Test public void testLockLHSNegative() { assertFalse(ruleModeller.lockLHS()); }