Examples of generateCode()


Examples of org.dyno.visual.swing.parser.spi.IParser.generateCode()

    int count = ((CompositeAdapter)adaptable).getChildCount();
    for (int i = 0; i < count; i++) {
      Component child = ((CompositeAdapter)adaptable).getChild(i);
      WidgetAdapter childAdapter = WidgetAdapter.getWidgetAdapter(child);
      IParser parser = (IParser) childAdapter.getAdapter(IParser.class);
      if (parser!=null&&!parser.generateCode(type, imports, monitor))
        return false;
    }
    if (!adaptable.isCodeDirty())
      return true;
    return super.generateCode(type, imports, monitor);
View Full Code Here

Examples of org.dyno.visual.swing.parser.spi.IParser.generateCode()

      ICompilationUnit unit = root.getCompilationUnit();
      ICompilationUnit copy = unit.getWorkingCopy(monitor);
      IType type = getUnitMainType(copy);
      if (type != null) {
        ImportRewrite imports = createImportRewrite(copy);
        boolean success = parser.generateCode(type, imports, monitor);
        if (!success)
          return null;
        removeRemovedComponent(root, monitor, unit, type);
        createPreferredLnf(root, monitor, type, imports);
        if (success) {
View Full Code Here

Examples of org.dyno.visual.swing.parser.spi.IParser.generateCode()

      JPopupMenu jpm = JavaUtil.getComponentPopupMenu(jcomp);
      if (jpm != null && WidgetAdapter.getWidgetAdapter(jpm) != null) {
        WidgetAdapter jpmAdapter = WidgetAdapter.getWidgetAdapter(jpm);
        IParser parser = (IParser) jpmAdapter.getAdapter(IParser.class);
        if (parser != null) {
          parser.generateCode(type, imports, monitor);
        }
      }
    }
    if (adaptable.isRoot()) {
      return createRootCode(type, imports, monitor);
View Full Code Here

Examples of org.dyno.visual.swing.parser.spi.IParser.generateCode()

    if (!createInitMethod(type, imports, monitor, sibling, init_name))
      return false;
    for (InvisibleAdapter invisible : adaptable.getInvisibles()) {
      IParser parser = (IParser) invisible.getAdapter(IParser.class);
      if (parser != null) {
        if (!parser.generateCode(type, imports, monitor))
          return false;
      }
    }
    if (!createEventMethod(type, imports, monitor))
      return false;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.generateCode()

  FieldDeclaration[] fieldDeclarations = typeDeclaration.fields;
  for (int i = methodBinding.startIndex, max = methodBinding.endIndex; i < max; i++) {
    FieldDeclaration fieldDecl = fieldDeclarations[i];
    if (fieldDecl.isStatic()) {
      if (fieldDecl.getKind() == AbstractVariableDeclaration.ENUM_CONSTANT) {
        fieldDecl.generateCode(staticInitializerScope, this);
      }
    }
  }
  return_();
}
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode()

    }
    if (this.memberTypes != null) {
      for (int i = 0, max = this.memberTypes.length; i < max; i++) {
        TypeDeclaration memberType = this.memberTypes[i];
        classFile.recordInnerClasses(memberType.binding);
        memberType.generateCode(this.scope, classFile);
      }
    }
    // generate all methods
    classFile.setForMethodInfos();
    if (this.methods != null) {
View Full Code Here

Examples of org.jbpm.ui.bsh.BSHDecisionModel.generateCode()

                    ifExpr = new IfExpr(labels[i].getText(), var1, lexem2, Operation.getByName(operationName, typeSupport));
                }
                decisionModel.addIfExpr(ifExpr);
            }
            styledText.setText(decisionModel.generateCode());
        } catch (RuntimeException e1) {
            DesignerLogger.logError(e1);
            setErrorLabelText(Messages.getString("BSHEditor.error.construct"));
        }
    }
View Full Code Here

Examples of org.jbpm.ui.bsh.BSHValidationModel.Expr.generateCode()

                        comboBoxVar1.setData(variable);
                        refreshCombos();

                        comboBoxOp.setText(expr.getOperation().getVisibleName());
                        comboBoxVar2.setText(expr.getVar2().getName());
                        textData = expr.generateCode();
                    }
                }
            } catch (Exception e) {
                tabFolder.setSelection(1);
            }
View Full Code Here

Examples of org.jbpm.ui.bsh.Operation.generateCode()

                String operationName = comboBoxOp.getItem(comboBoxOp.getSelectionIndex());
                Variable var2 = getVariableByName(comboBoxVar2.getText());

                BSHTypeSupport typeSupport = BSHTypeSupport.getByFormat(var1.getFormat());
                Operation operation = Operation.getByName(operationName, typeSupport);
                String bsh = operation.generateCode(var1, var2);

                bshCodeText.setText(bsh);
            } else {
                // don't change code
            }
View Full Code Here

Examples of org.jibx.binding.def.BindingDefinition.generateCode()

            sname = sname.substring(0, split);
        }
        sname = BindingDirectory.convertName(sname);
       
        BindingDefinition def = Utility.loadBinding(fname, sname, is, null, false);
        def.generateCode(false);
        return def;
    }
}
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.