Package org.eclipse.ui.forms.editor

Examples of org.eclipse.ui.forms.editor.IFormPage


           e.printStackTrace();
        }
    }
   
    protected void removePage(String pageId) {
        IFormPage page = findPage(pageId);
        if (page != null) {
            removePage(page.getIndex());
        }
    }
View Full Code Here


      break;
    }
  }

  public void propertyChange(PropertyChangeEvent arg0) {
    IFormPage page = (IFormPage) getManagedForm().getContainer();
    if(page.isActive()) {
      refresh();
    } else {
      markStale();
    }
  }
View Full Code Here

       
        IEditorPart editorPart = editorReference.getEditor(false);
        if (editorPart instanceof TaskEditor) {
         
          TaskEditor taskEditorPart = (TaskEditor)editorPart;
          IFormPage page = taskEditorPart.findPage(RedmineTaskEditorPage.ID);
          if(page!=null) {

            TaskDataModel model = ((RedmineTaskEditorPage)page).getModel();
            ITask editorTask = model.getTask();
            if (editorTask!=null && (editorTask==task || editorTask.getHandleIdentifier().equals(task.getHandleIdentifier()))) {
View Full Code Here

    }

    public void commitFormPages(boolean onSave) {
        IFormPage[] pages = getPages();
        for (int i = 0; i < pages.length; i++) {
            IFormPage page = pages[i];
            IManagedForm mform = page.getManagedForm();
            if (mform != null && mform.isDirty())
                mform.commit(true);
        }
    }
View Full Code Here

            IFileEditorInput fei = (IFileEditorInput) input;
            if (deploymentPlan != null) {
                deploymentPlan = loadDeploymentPlan(fei.getFile());
                IFormPage[] pages = getPages();
                for (int i = 0; i < pages.length; i++) {
                    IFormPage page = pages[i];
                    IManagedForm mform = page.getManagedForm();
                    if (mform != null) {
                        if (page instanceof AbstractGeronimoFormPage) {
                            AbstractGeronimoFormPage geronimoPage = (AbstractGeronimoFormPage)page;
                            geronimoPage.refresh();
                        }
View Full Code Here

    @Override
    protected void pageChange(int newPageIndex) {
        if (isDirty()) {
            IFormPage[] pages = getPages();
            IFormPage active = getActivePageInstance();
            int curr = getCurrentPage();
            if (getCurrentPage() == newPageIndex) {
                return;
            }
            // if the old or the new page are the source page, don't allow the page change
View Full Code Here

    Object activePage = pages.get(newPageIndex);
    String xml = null;
    XMLMemento memento = XMLMemento.createWriteRoot(KEY_ACTIVE_PAGE);

    if (activePage instanceof IFormPage) {
      IFormPage formPage = (IFormPage) activePage;
      memento.putString(KEY_PAGE_ID, formPage.getId());
    }

    if (activePage instanceof IConfigEditorPage) {
      IConfigEditorPage configPage = (IConfigEditorPage) activePage;
      memento.putString(KEY_PAGE_URI, configPage.getNamespaceUri());
View Full Code Here

TOP

Related Classes of org.eclipse.ui.forms.editor.IFormPage

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.