Examples of Editor


Examples of org.objectweb.speedo.pobjects.fetchgroup.Editor

  public void testInheritanceReference() {
    logger.log(BasicLevel.DEBUG, "***************testInheritanceReference*****************");
    Author author1 = new Author("Marx", "Karl");
    Author author2 = new Author("Kissinger", "Henry");
   
    Editor editor1 = new Editor("Plon");
    Editor editor2 = new Editor("Robert");
   
    Style style1 = new Style("act", "action");
    Style style2 = new Style("thr", "thriller");
   
    Dictionnary dictionnary = new Dictionnary(332, author2, 950, 12000, 1999, editor2);
View Full Code Here

Examples of org.objectweb.speedo.tutorial.pobjects.additional.detach.Editor

    FetchPlan fp = pm.getFetchPlan();
   
    //create a book
    Author author = new Author("William S. Burroughs");
    Address address = new Address("Fenton Street", "931ZR2", "Leeds");
    Editor editor = new Editor("Mille et Une Nuits", address);
    Book book = new Book("The Yage Letters", author, editor, 1955);
   
    //make the book persistent
    pm.currentTransaction().begin();
    System.out.println( "make persistent the book " + book.toString());
View Full Code Here

Examples of org.sgx.yuigwt.editors.Editor

    }
    T obj = model; // we modify the passed PH !
    PropertyHaverEditorError errors = new PropertyHaverEditorError(this);
    boolean error = false;
    for (String propName : editors.keySet()) {
      Editor ed = editors.get(propName);

      if (ed != null) {
        Object val = ed.flush();
        if (val == null && ed.getErrors().size() > 0) {
          error = true;
          errors.putFieldError(propName, ed.getErrors());
        } else {
          obj.setProperty(propName, val);
        }
      }
    }
View Full Code Here

Examples of org.springframework.richclient.application.Editor

 
  private Editor createEditor(){
    Object o = BeanUtils.instantiateClass(editorClass);
    Assert.isTrue((o instanceof Editor), "Editor class '"+
      editorClass + "' was instantiated but is not an Editor");
    Editor editor = (Editor)o;
    editor.setDescriptor(this);
    ApplicationEventMulticaster multicaster = getApplicationEventMulticaster();
    if(editor instanceof ApplicationListener &&  multicaster != null){
      multicaster.addApplicationListener((ApplicationListener)editor);
    }
    if(editorProperties != null){
View Full Code Here

Examples of org.togglz.core.repository.file.ReloadablePropertiesFile.Editor

        // update file if changed
        fileContent.reloadIfUpdated();

        Feature feature = featureState.getFeature();
        Editor editor = fileContent.getEditor();

        // enabled
        String enabledKey = getEnabledPropertyName(feature);
        String enabledValue = featureState.isEnabled() ? "true" : "false";
        editor.setValue(enabledKey, enabledValue);

        // write strategy id, will be removed if it is null
        editor.setValue(getStrategyPropertyName(feature), featureState.getStrategyId());

        // parameters
        String paramPrefix = getParameterPropertyName(feature, "");
        editor.removeKeysStartingWith(paramPrefix);
        for (String id : featureState.getParameterNames()) {
            String key = getParameterPropertyName(feature, id);
            editor.setValue(key, featureState.getParameter(id));
        }

        // remove the old users property if it still exists from the old format
        editor.setValue(getUsersPropertyName(feature), null);

        // write
        editor.commit();

    }
View Full Code Here

Examples of org.waveprotocol.wave.client.editor.Editor

        new RegistriesImpl(Editor.ROOT_HANDLER_REGISTRY,
            Editor.ROOT_ANNOTATION_REGISTRY, paintRegistry);

    StyleAnnotationHandler.register(registries);

    Editor editor = Editors.create();
    editor.init(registries, KeyBindingRegistry.NONE, EditorSettings.DEFAULT);

    // Now the actual test

    ContentSerialisationUtil.setContentString(editor, "<body><line/>abc</body>");
    CMutableDocument doc = editor.getDocument();
    doc.setAnnotation(3, 4, "style/color", "red");

    editor.getContent().debugCheckHealthy2();
    timerService.tick(1000);
    ContentView fullDoc = ((EditorImpl) editor).getContent().getFullContentView();
    assertNotNull(
        DocHelper.getElementWithTagName(fullDoc, AnnotationPaint.SPREAD_FULL_TAGNAME));
    doc.setAnnotation(3, 4, "style/color", null);
    timerService.tick(1000);
    assertNull(DocHelper.getElementWithTagName(fullDoc, AnnotationPaint.SPREAD_FULL_TAGNAME));

    doc.setAnnotation(3, 5, "style/color", "red");
    editor.removeContentAndUnrender();
    editor.reset();
    timerService.tick(1000);
    assertNull(DocHelper.getElementWithTagName(fullDoc, AnnotationPaint.SPREAD_FULL_TAGNAME));

  }
View Full Code Here

Examples of org.zanata.webtrans.client.ui.Editor

            cachedTargets = Lists.newArrayList("");
        }
        editorGrid.resize(cachedTargets.size(), COLUMNS);
        int rowIndex = 0;
        for (String target : cachedTargets) {
            Editor editor =
                    new Editor(target, rowIndex, listener, transUnit.getId());
            editor.ensureDebugId(transUnit.getRowIndex() + "-");
            editorGrid.setWidget(rowIndex, 0, editor);
            editors.add(editor);
            rowIndex++;
        }
        editingState = EditingState.SAVED;
View Full Code Here

Examples of processing.app.Editor

    //
    public void tryDocking() {
      if (thisEditor == null)
        return;
      Editor editor = thisEditor;
      Frame frame = thisErrorWindow;

      int ex = editor.getX();
      int ey = editor.getY();
      int ew = editor.getWidth();
      int eh = editor.getHeight();

      int fx = frame.getX();
      int fy = frame.getY();
      int fw = frame.getWidth();
      int fh = frame.getHeight();
View Full Code Here

Examples of world.Editor

 
  private static void init(){
    anim = new Anim();
   
    game = new Game();
    editor = new Editor();
   
    menuGame = new MenuGame();
    menuEditor = new MenuEditor();
  }
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.