Examples of ISaveablesSource


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

Examples of org.eclipse.ui.ISaveablesSource

   *            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

Examples of org.eclipse.ui.ISaveablesSource

   * @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
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.