Package es.iiia.sgi.editors

Examples of es.iiia.sgi.editors.RenderingEditor


    text.setMinimum(0);
    text.setSelection(selection);
   
    text.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        RenderingEditor editor = ((RenderingEditor) PlatformUI
            .getWorkbench().getActiveWorkbenchWindow()
            .getActivePage().getActiveEditor());
        editor.setPossibleResults(text.getSelection());       
        selection = text.getSelection();
      }
     
    });
   
View Full Code Here


    //combo.setBackground(ColorConstants.white);
    combo.setToolTipText("Rendering protocol");

    combo.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        RenderingEditor editor = ((RenderingEditor) PlatformUI
            .getWorkbench().getActiveWorkbenchWindow()
            .getActivePage().getActiveEditor());

        switch (combo.getSelectionIndex()) {
        case 0:
          editor.setProtocol(new BreadthFirstProtocol(
              ShapeGrammarModel.ACTIVE_SHAPE_GRAMMAR, 0));
          break;
        case 1:
          editor.setProtocol(new DepthFirstProtocol(
              ShapeGrammarModel.ACTIVE_SHAPE_GRAMMAR, 0));
          break;
        default:
          editor.setProtocol(new SubShapeProtocol(
              ShapeGrammarModel.ACTIVE_SHAPE_GRAMMAR, 0, true));

        }
        selectedIndex = combo.getSelectionIndex();
      }
View Full Code Here

    //combo.setBackground(ColorConstants.white);
    combo.setToolTipText("Use markers");

    combo.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        RenderingEditor editor = ((RenderingEditor) PlatformUI
            .getWorkbench().getActiveWorkbenchWindow()
            .getActivePage().getActiveEditor());

        editor.setUseMarkers(combo.getSelectionIndex() == 0);
        selection = combo.getSelectionIndex();
      }
    });

    return combo;
View Full Code Here

    //combo.setBackground(ColorConstants.white);
    combo.setToolTipText("Randomization value");

    combo.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        RenderingEditor editor = ((RenderingEditor) PlatformUI
            .getWorkbench().getActiveWorkbenchWindow()
            .getActivePage().getActiveEditor());
        editor.setRandomization(combo.getSelectionIndex() + 1);
        selection = combo.getSelectionIndex();       
       
      }
    });
View Full Code Here

    text.setMinimum(0);
    text.setSelection(selection);
   
    text.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        RenderingEditor editor = ((RenderingEditor) PlatformUI
            .getWorkbench().getActiveWorkbenchWindow()
            .getActivePage().getActiveEditor());
        editor.setIterations(text.getSelection());
       
        selection = text.getSelection();
      }
     
    });
View Full Code Here

        IEditorPart editor =  getSite().getPage().getActiveEditor();
        if (editor == null) {
          MessageDialog.openInformation(getSite().getShell(), "Information", "You need to open the renderer to continue");
          return;
        }
        RenderingEditor renderer = (RenderingEditor) editor;
        renderer.getProtocol().getShapeBasket().clear();
        renderer.getProtocol().getShapeBasket().add(shape);
        renderer.setRenderedShape();
      }
    });
   
    Cursor cursor = new Cursor(ctrl.getDisplay(), SWT.CURSOR_HAND);
    ctrl.setCursor(cursor);
View Full Code Here

TOP

Related Classes of es.iiia.sgi.editors.RenderingEditor

Copyright © 2018 www.massapicom. 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.