Package es.iiia.shapeeditor

Examples of es.iiia.shapeeditor.ShapeGrammarInput


      RuleModel model = ((RuleContentProvider) rules.getContentProvider())
          .addRule(type);

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

        // opens editor
        RuleEditor editor = (RuleEditor) workbenchWindow
            .getActivePage().openEditor(input, RuleEditor.ID);
View Full Code Here


  }

  public ShapeGrammarInput loadFile(IWorkbenchWindow workbenchWindow,
      ShapeGrammarModel model) {

    ShapeGrammarInput input = new ShapeGrammarInput(model);

    // get views
    ShapeView shapes = (ShapeView) workbenchWindow.getActivePage()
        .findView(ShapeView.ID);
    RuleView rules = (RuleView) workbenchWindow.getActivePage().findView(
View Full Code Here

    if (canContinue) {
      // create new grammar
      ShapeGrammarModel newModel = this.createGrammar();
     
      // create input
      ShapeGrammarInput input = new ShapeGrammarInput(newModel);

      // reload views
      ShapeView shapes = (ShapeView) workbenchWindow.getActivePage()
          .findView(ShapeView.ID);
      RuleView rules = (RuleView) workbenchWindow.getActivePage()
View Full Code Here

      Object obj = ((IStructuredSelection) selection).getFirstElement();
      // If we had a selection lets open the editor
      if (obj != null) {
        RuleModel model = (RuleModel) obj;
               
        ShapeGrammarInput input = new ShapeGrammarInput(model);
        try {
          // get Editor ID (it can be specific for different geometry)
          String editorID = model.getEditorId();
         
          // opens editor
View Full Code Here

      Object obj = ((IStructuredSelection) selection).getFirstElement();
      // If we had a selection lets open the editor
      if (obj != null) {
        //ShapeModel geometry = (ShapeModel) obj;
        NodeModel model = (NodeModel) obj;
        ShapeGrammarInput input = new ShapeGrammarInput(model);
        try {
          // get Editor ID (it can be specific for different geometry)
          String editorID = model.getEditorId();
         
          // open editor         
View Full Code Here

    // Create instance of the new shape
    ShapeModel shape = this.createShape(shapes);

    // now open editor
    ShapeGrammarInput input = new ShapeGrammarInput(shape);
    try {
      // opens editor
      ShapeEditor editor = (ShapeEditor) workbenchWindow.getActivePage()
          .openEditor(
              input,
View Full Code Here

TOP

Related Classes of es.iiia.shapeeditor.ShapeGrammarInput

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.