Package org.eclipse.ui.forms

Examples of org.eclipse.ui.forms.IManagedForm.commit()


        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);
        }
    }

    public IFormPage[] getPages() {
        ArrayList formPages = new ArrayList();
View Full Code Here


        Object page = pages.get(i);
        if (page instanceof IFormPage) {
          IFormPage fpage = (IFormPage)page;
          IManagedForm mform = fpage.getManagedForm();
          if (mform != null && mform.isDirty())
            mform.commit(onSave);
        }
      }
    } 
  }
View Full Code Here

        && pages.get(oldPageIndex) instanceof IFormPage) {
      // Commit old page before activating the new one
      IFormPage oldFormPage = (IFormPage) pages.get(oldPageIndex);
      IManagedForm mform = oldFormPage.getManagedForm();
      if (mform != null)
        mform.commit(false);
    }
    if (pages.size() > newPageIndex
        && pages.get(newPageIndex) instanceof IFormPage)
      ((IFormPage) pages.get(newPageIndex)).setActive(true);
    if (oldPageIndex != -1 && pages.size() > oldPageIndex
View Full Code Here

        Object page = (IFormPage)pages.get(i);
        if (page instanceof IFormPage) {
          IFormPage fpage = (IFormPage)page;
          IManagedForm mform = fpage.getManagedForm();
          if (mform != null && mform.isDirty())
            mform.commit(onSave);
        }
      }
    } 
  }
View Full Code Here

        && pages.get(oldPageIndex) instanceof IFormPage) {
      // Commit old page before activating the new one
      IFormPage oldFormPage = (IFormPage) pages.get(oldPageIndex);
      IManagedForm mform = oldFormPage.getManagedForm();
      if (mform != null)
        mform.commit(false);
    }
    if (pages.size() > newPageIndex
        && pages.get(newPageIndex) instanceof IFormPage)
      ((IFormPage) pages.get(newPageIndex)).setActive(true);
    if (oldPageIndex != -1 && pages.size() > oldPageIndex
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.