Package org.eclipse.ui

Examples of org.eclipse.ui.ISaveablesSource


        if (saveable == null) {
          saveable = getActiveEditor();
        }
        /* **********************************************************************************/
        if (saveable instanceof ISaveablesSource) {
      ISaveablesSource modelSource = (ISaveablesSource) saveable;
      setEnabled(SaveableHelper.needsSave(modelSource));
      return;
        }
        setEnabled(saveable != null && saveable.isDirty());
    }
View Full Code Here


   *            the workbench part
   * @return the saveable models
   */
  private Saveable[] getSaveables(IWorkbenchPart part) {
    if (part instanceof ISaveablesSource) {
      ISaveablesSource source = (ISaveablesSource) part;
      return source.getSaveables();
    } else if (part instanceof ISaveablePart) {
      return new Saveable[] { new DefaultSaveable(part) };
    } else {
      return new Saveable[0];
    }
View Full Code Here

   * @param part the workbench part
   * @return the saveable models
   */
  private static Saveable[] getSaveables(IWorkbenchPart part) {
    if (part instanceof ISaveablesSource) {
      ISaveablesSource source = (ISaveablesSource) part;
      return source.getSaveables();
    }
    return new Saveable[] { new DefaultSaveable(part) };
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.ISaveablesSource

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.