Package es.iiia.sgi.editors

Examples of es.iiia.sgi.editors.RuleEditor


      if (model != null) {
        // Create input
        ShapeGrammarInput input = new ShapeGrammarInput(model);

        // opens editor
        RuleEditor editor = (RuleEditor) workbenchWindow
            .getActivePage().openEditor(input, RuleEditor.ID);

        // hook the listener
        model.addPropertyChangeListener(editor);
View Full Code Here


        try {
          // get Editor ID (it can be specific for different geometry)
          String editorID = model.getEditorId();
         
          // opens editor
          RuleEditor editor = (RuleEditor) page.openEditor(input, editorID == null ? RuleEditor.ID : editorID);
         
          // hook the listener
          model.addPropertyChangeListener(editor);
         
          // shows properties
View Full Code Here

public class AddToRightHandler extends AbstractHandler implements IHandler {

  public Object execute(ExecutionEvent event) throws ExecutionException {
    // get current model
    RuleEditor editor = (RuleEditor) HandlerUtil.getActiveEditor(event);
    RuleModel rule = (RuleModel) editor.getModel();

    // notify user that shape could be replaced
    if (rule.getRightShape() != null) {

    }
View Full Code Here

public class AddToLeftHandler extends AbstractHandler implements IHandler {

  public Object execute(ExecutionEvent event) throws ExecutionException {

    // get current model
    RuleEditor editor = (RuleEditor) HandlerUtil.getActiveEditor(event);
    RuleModel rule = (RuleModel) editor.getModel();

    // TODO: notify user that shape could be replaced
    if (rule.getLeftShape() != null) {

    }
View Full Code Here

TOP

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

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.