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;