Examples of needsSaving()


Examples of com.lightdev.app.shtm.SHTMLPanel.needsSaving()

    boolean editorContentEmpty = true;
    String documentText = noteViewerComponent.getDocumentText();
    documentText = HEAD.matcher(documentText).replaceFirst("");
    editorContentEmpty = HtmlUtils.isEmpty(documentText);
    Controller.getCurrentModeController().getMapController().removeNodeSelectionListener(this);
    if (noteViewerComponent.needsSaving()) {
      try {
        ignoreEditorUpdate = true;
        if (editorContentEmpty) {
          noteController.setNoteText(node, null);
        }
View Full Code Here

Examples of com.projity.pm.task.Project.needsSaving()

      if (enable==false) return true;
      NamedFrame frame=getCurrentFrame();
      if (frame==null) return false;
      Project project=getCurrentFrame().getProject();
      if (project==null) return false;
      return Environment.isOpenProj() || (!project.isLocal()&&project.needsSaving());
    }
  }

  public class SaveProjectAsAction extends MenuActionsMap.DocumentMenuAction {
    private static final long serialVersionUID = 1L;
View Full Code Here

Examples of com.projity.pm.task.Project.needsSaving()

      if (enable==false) return true;
      NamedFrame frame=getCurrentFrame();
      if (frame==null) return false;
      Project project=getCurrentFrame().getProject();
      if (project==null) return false;
      return Environment.isOpenProj() || (!project.isLocal()&&project.needsSaving());
    }
  }

  public class SaveProjectAsAction extends MenuActionsMap.DocumentMenuAction {
    private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.eclipse.jface.preference.IPersistentPreferenceStore.needsSaving()

   */
  public static void save() {
    IPreferenceStore store = getPreferenceStore();
    if (store instanceof IPersistentPreferenceStore) {
      IPersistentPreferenceStore pstore = (IPersistentPreferenceStore) store;
      if (pstore.needsSaving()) {
        try {
          pstore.save();
        } catch (IOException up) {
          // hmm, what should we do?
        }
View Full Code Here

Examples of org.eclipse.jface.preference.IPreferenceStore.needsSaving()

   * @return whether it is okay to close the preference page
   */
  public boolean performOk() {
    IPreferenceStore store = getPreferenceStore();
    final boolean okToClose = performOk(store);
    if (store.needsSaving()) {
      try {
        ((IPersistentPreferenceStore)store).save();
        Activator.broadcastPropertyChange(new PropertyChangeEvent(this,
            Activator.DECORATORS_CHANGED, null, null));
      } catch (IOException e) {
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.