Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkbenchPage.openEditor()


      @Override
      public void run() {
        IWorkbenchPage page = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getActivePage();
        try {
          page.openEditor(input, ViewEditor.ID);
        } catch (PartInitException e) {
          e.printStackTrace();
        }
      }
    });
View Full Code Here


        IEditorInput input = new NonExistingLdifEditorInput();
        String editorId = LdifEditor.getId();
        try
        {
            IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
            page.openEditor( input, editorId );
        }
        catch ( PartInitException e )
        {
        }
    }
View Full Code Here

            input.setEntry(entry);
            IWorkbenchPage page = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage();

        try {
          page.openEditor(input, Content.ID);
        } catch (PartInitException e1) {
          throw new OtroException(e1);
        }
          }
        });
View Full Code Here

            // Get the FolderDescrNode and open the editor
            FolderDescrNode fnd = (FolderDescrNode) obj;

            if (Application.getLock(fnd.getDescr()))
              {
              page.openEditor(fnd, FolderDescrEditor.ID);
              }
            }
          }
        else
          {
View Full Code Here

              // Get the FolderDescrNode and open the editor
              FolderListNode fld = ((FolderListNode) obj);

              if (Application.getLock(fld.getDescr()))
                {
                page.openEditor(fld, FolderListEditor.ID);
                }
              }
            }
          else
            {
View Full Code Here

              DataPathTitleNode dptn = (DataPathTitleNode) dnp.getParent();

              dptn.addChild(dnp);

              page.openEditor(dptn, DataPathEditor.ID);

              // Update the tree view, but does not refresh the visible parts.
              if (iwp instanceof DBStructView)
                {
                ((DBStructView) iwp).getTree().refresh(dptn, true);
View Full Code Here

                  // Get the ListDescrNode and open the editor
                  ListDescrNode fnd = ((ListDescrNode) obj);

                  if (Application.getLock(fnd.getDescr()))
                    {
                    page.openEditor(fnd, ListDescrEditor.ID);
                    }
                  }
                }
              else
                {
View Full Code Here

                    // Get the FolderDescrNode and open the editor
                    EnumItemListNode fld = ((EnumItemListNode) obj);

                    if (Application.getLock(fld.getDescr()))
                      {
                      page.openEditor(fld, EnumItemListEditor.ID);
                      }
                    }
                  }
                }
              }
View Full Code Here

            // Create a new FolderDescrNode and open the editor
            FolderDescription fd = Application.getDataStore().createFolderDescription();
            FolderDescrNode fnd = new FolderDescrNode(fd);
            ((FolderDescrTitleNode) obj).addChild(fnd);

            page.openEditor(fnd, FolderDescrEditor.ID);

            ((DBStructView) iwp).getTree().refresh(obj, true);
            }
          }
        else
View Full Code Here

              {
              FolderListNode fnd = (FolderListNode) obj;

              fnd.create();

              page.openEditor(fnd, FolderListEditor.ID);

              ((DBDataView) iwp).getTree().refresh(obj, true);
              }
            }
          else
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.